#include <SDBVMat.h>
Inheritance diagram for PLearn::SDBVMFieldMultiDiscrete:
Public Member Functions | |
SDBVMFieldMultiDiscrete (const FieldArray &fields, real missing_values_mapping=MISSING_VALUE, SDBVMOutputCoding oc=SDBVMNumeric, VMField::FieldType ft=VMField::DiscrGeneral) | |
const FieldArray & | getFields () 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 |
|
Reimplemented from PLearn::SDBVMFieldDiscrete. Definition at line 868 of file SDBVMat.h. Referenced by SDBVMFieldMultiDiscrete(). |
|
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(). |
|
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(). |
|
Accessor and mutator for field array.
|
|
Definition at line 909 of file SDBVMat.cc. References field_multipliers_, fields_, PLearn::TVec< T >::resize(), and PLearn::TVec< T >::size(). Referenced by SDBVMFieldMultiDiscrete(). |
|
factor by which to multiply
Definition at line 894 of file SDBVMat.h. Referenced by getDiscreteValue(), and setFields(). |
|
Definition at line 893 of file SDBVMat.h. Referenced by getDiscreteValue(), and setFields(). |