#include <SDBVMat.h>
Inheritance diagram for PLearn::SDBVMField:


Public Member Functions | |
| SDBVMField (real missing_values_mapping=MISSING_VALUE, VMField::FieldType field_type=VMField::UnknownType) | |
| Constructor: specifies the mapping for missing values.   | |
| virtual void | convertField (const SDBWithStats &sdb, const Row &theRow, const Vec &outputField) const =0 | 
| virtual int | fieldWidth () const =0 | 
| Width that the field occupies in the VMat.   | |
| VMField::FieldType | fieldType () const | 
| bool | isContinuous () const | 
| bool | isDiscrGeneral () const | 
| bool | isDiscrMonotonic () const | 
| bool | isDiscrFloat () const | 
| bool | isDate () const | 
| virtual SDBVMOutputCoding | getOutputCoding () const | 
Protected Member Functions | |
| void | convertMissing (const Vec &output) const | 
| Replace all MISSING_VALUEs in output vector by missing_values_mapping_.   | |
Protected Attributes | |
| real | missing_values_mapping_ | 
| VMField::FieldType | field_type_ | 
This class provides basic functionality for handling generic functional transformation between SimpleDB field(s) and VMatrix segments. (A segment is defined as a part of a VMatrix row, consisting of one or more columns).
Definition at line 152 of file SDBVMat.h.
      
  | 
  ||||||||||||
| 
 Constructor: specifies the mapping for missing values. 
 Definition at line 156 of file SDBVMat.h. References field_type_, and missing_values_mapping_.  | 
  
      
  | 
  ||||||||||||||||
| 
 Given a database row, convert the appropriate parts to a (preallocated) output vector of the correct width (given by fieldWidth). Replace MISSING_VALUEs by missing_values_mapping. Implemented in PLearn::SDBVMFieldAsIs, PLearn::SDBVMFieldNormalize, PLearn::SDBVMFieldDivSigma, PLearn::SDBVMFieldAffine, PLearn::SDBVMFieldPosAffine, PLearn::SDBVMFieldSignedPower, PLearn::SDBVMFieldFunc1, PLearn::SDBVMFieldFunc2, PLearn::SDBVMFieldDate, PLearn::SDBVMFieldDay, PLearn::SDBVMFieldMonths, PLearn::SDBVMFieldDateDiff, PLearn::SDBVMFieldDiscrete, PLearn::SDBVMFieldDateGreater, PLearn::SDBVMFieldICBCTargets, and PLearn::SDBVMFieldICBCClassification.  | 
  
      
  | 
  
| 
 Replace all MISSING_VALUEs in output vector by missing_values_mapping_. 
 Definition at line 285 of file SDBVMat.cc. References PLearn::is_missing(), PLearn::TVec< T >::length(), missing_values_mapping_, and PLearn::Vec.  | 
  
      
  | 
  
| 
 Query the kind of mapping performed by each field DiscrGeneral: arbitrary discrete values DiscrMonotonic: monotonic discrete values DiscrFloat: monotonic + some exceptions Definition at line 177 of file SDBVMat.h. References field_type_. Referenced by PLearn::SDBVMatrix::appendField().  | 
  
      
  | 
  
      
  | 
  
| 
 
 Reimplemented in PLearn::SDBVMFieldDiscrete. Definition at line 280 of file SDBVMat.cc. References PLearn::SDBVMUnknownCoding.  | 
  
      
  | 
  
| 
 
 Definition at line 179 of file SDBVMat.h. References field_type_.  | 
  
      
  | 
  
| 
 
 Definition at line 183 of file SDBVMat.h. References field_type_.  | 
  
      
  | 
  
| 
 
 Definition at line 182 of file SDBVMat.h. References field_type_.  | 
  
      
  | 
  
| 
 
 Definition at line 180 of file SDBVMat.h. References field_type_.  | 
  
      
  | 
  
| 
 
 Definition at line 181 of file SDBVMat.h. References field_type_.  | 
  
      
  | 
  
| 
 
 Definition at line 193 of file SDBVMat.h. Referenced by fieldType(), isContinuous(), isDate(), isDiscrFloat(), isDiscrGeneral(), isDiscrMonotonic(), and SDBVMField().  | 
  
      
  | 
  
| 
 
 Definition at line 192 of file SDBVMat.h. Referenced by convertMissing(), and SDBVMField().  | 
  
 1.3.7