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

PLearn::SDBVMFieldMultiDiscrete Class Reference

#include <SDBVMat.h>

Inheritance diagram for PLearn::SDBVMFieldMultiDiscrete:

Inheritance graph
[legend]
Collaboration diagram for PLearn::SDBVMFieldMultiDiscrete:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SDBVMFieldMultiDiscrete (const FieldArray &fields, real missing_values_mapping=MISSING_VALUE, SDBVMOutputCoding oc=SDBVMNumeric, VMField::FieldType ft=VMField::DiscrGeneral)
const FieldArraygetFields () const
 Accessor and mutator for field array.

void setFields (const FieldArray &fields)
virtual real getDiscreteValue (const SDBWithStats &sdb, const Row &row) const
 Compute the "array index" corresponding to the fields.


Protected Attributes

FieldArray fields_
Vec field_multipliers_
 factor by which to multiply


Private Types

typedef SDBVMFieldDiscrete inherited

Member Typedef Documentation

typedef SDBVMFieldDiscrete PLearn::SDBVMFieldMultiDiscrete::inherited [private]
 

Reimplemented from PLearn::SDBVMFieldDiscrete.

Definition at line 868 of file SDBVMat.h.

Referenced by SDBVMFieldMultiDiscrete().


Constructor & Destructor Documentation

PLearn::SDBVMFieldMultiDiscrete::SDBVMFieldMultiDiscrete const FieldArray fields,
real  missing_values_mapping = MISSING_VALUE,
SDBVMOutputCoding  oc = SDBVMNumeric,
VMField::FieldType  ft = VMField::DiscrGeneral
 

The constructor accepts an array of discrete fields; this class assumes ownership of the fields; the array can be empty, and later set with setFields().

Definition at line 899 of file SDBVMat.cc.

References PLearn::FieldArray, inherited, and setFields().


Member Function Documentation

real PLearn::SDBVMFieldMultiDiscrete::getDiscreteValue const SDBWithStats sdb,
const Row row
const [virtual]
 

Compute the "array index" corresponding to the fields.

Implements PLearn::SDBVMFieldDiscrete.

Definition at line 929 of file SDBVMat.cc.

References field_multipliers_, fields_, PLERROR, and PLearn::TVec< T >::size().

const FieldArray& PLearn::SDBVMFieldMultiDiscrete::getFields  )  const [inline]
 

Accessor and mutator for field array.

Definition at line 881 of file SDBVMat.h.

void PLearn::SDBVMFieldMultiDiscrete::setFields const FieldArray fields  ) 
 

Definition at line 909 of file SDBVMat.cc.

References field_multipliers_, fields_, PLearn::TVec< T >::resize(), and PLearn::TVec< T >::size().

Referenced by SDBVMFieldMultiDiscrete().


Member Data Documentation

Vec PLearn::SDBVMFieldMultiDiscrete::field_multipliers_ [protected]
 

factor by which to multiply

Definition at line 894 of file SDBVMat.h.

Referenced by getDiscreteValue(), and setFields().

FieldArray PLearn::SDBVMFieldMultiDiscrete::fields_ [protected]
 

Definition at line 893 of file SDBVMat.h.

Referenced by getDiscreteValue(), and setFields().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:00 2004 for PLearn by doxygen 1.3.7