Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::SDBVMSource Class Reference

A SDBVMSource represents a source for a value that can be either directly a field from a SDB or an already processed SDBVMField. More...

#include <SDBVMat.h>

Collaboration diagram for PLearn::SDBVMSource:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SDBVMSource (FieldPtr the_sdbfieldptr)
 SDBVMSource (PSDBVMField the_sdbvmfieldptr)
FieldValue getValue (const SDBWithStats &sdb, const Row &row) const
 to get the value of this source

const FieldStatgetFieldStat (const SDBWithStats &sdb, const Row &row) const
 to get the statistics for this source (works only if the source is a FieldPtr, produces an error if it's a PSDBVMField)


Protected Attributes

FieldPtr sdbfieldptr
PSDBVMField sdbvmfieldptr
Vec output

Detailed Description

A SDBVMSource represents a source for a value that can be either directly a field from a SDB or an already processed SDBVMField.

Definition at line 202 of file SDBVMat.h.


Constructor & Destructor Documentation

PLearn::SDBVMSource::SDBVMSource FieldPtr  the_sdbfieldptr  )  [inline]
 

Definition at line 210 of file SDBVMat.h.

PLearn::SDBVMSource::SDBVMSource PSDBVMField  the_sdbvmfieldptr  )  [inline]
 

Definition at line 213 of file SDBVMat.h.

References PLERROR.


Member Function Documentation

const FieldStat& PLearn::SDBVMSource::getFieldStat const SDBWithStats sdb,
const Row row
const [inline]
 

to get the statistics for this source (works only if the source is a FieldPtr, produces an error if it's a PSDBVMField)

Definition at line 235 of file SDBVMat.h.

References PLearn::FieldPtr::field_index(), PLearn::SDBWithStats::getStat(), and PLERROR.

Referenced by PLearn::SDBVMFieldDivSigma::convertField(), and PLearn::SDBVMFieldNormalize::convertField().

FieldValue PLearn::SDBVMSource::getValue const SDBWithStats sdb,
const Row row
const [inline]
 

to get the value of this source

Definition at line 222 of file SDBVMat.h.

References PLearn::Row::bind().

Referenced by PLearn::SDBVMFieldICBCClassification::convertField(), PLearn::SDBVMFieldICBCTargets::convertField(), PLearn::SDBVMFieldDateGreater::convertField(), PLearn::SDBVMFieldDateDiff::convertField(), PLearn::SDBVMFieldMonths::convertField(), PLearn::SDBVMFieldDay::convertField(), PLearn::SDBVMFieldDate::convertField(), PLearn::SDBVMFieldFunc2::convertField(), PLearn::SDBVMFieldFunc1::convertField(), PLearn::SDBVMFieldSignedPower::convertField(), PLearn::SDBVMFieldPosAffine::convertField(), PLearn::SDBVMFieldAffine::convertField(), PLearn::SDBVMFieldDivSigma::convertField(), PLearn::SDBVMFieldNormalize::convertField(), PLearn::SDBVMFieldAsIs::convertField(), PLearn::SDBVMFieldRemapIntervals::getDiscreteValue(), PLearn::SDBVMFieldRemapStrings::getDiscreteValue(), PLearn::SDBVMFieldRemapReals::getDiscreteValue(), PLearn::SDBVMFieldCodeAsIs::getDiscreteValue(), and PLearn::SDBVMFieldDateGreater::getDiscreteValue().


Member Data Documentation

Vec PLearn::SDBVMSource::output [protected]
 

Definition at line 207 of file SDBVMat.h.

FieldPtr PLearn::SDBVMSource::sdbfieldptr [protected]
 

Definition at line 205 of file SDBVMat.h.

PSDBVMField PLearn::SDBVMSource::sdbvmfieldptr [protected]
 

Definition at line 206 of file SDBVMat.h.


The documentation for this class was generated from the following file:
Generated on Tue Aug 17 16:22:48 2004 for PLearn by doxygen 1.3.7