#include <SDBVMat.h>
Inheritance diagram for PLearn::SDBVMFieldRemapIntervals:
Public Member Functions | |
SDBVMFieldRemapIntervals (SDBVMSource source, const string &mappings, real other_values_mapping=MISSING_VALUE, real missing_values_mapping=MISSING_VALUE, SDBVMOutputCoding oc=SDBVMNumeric, VMField::FieldType ft=VMField::DiscrGeneral) | |
virtual real | getDiscreteValue (const SDBWithStats &sdb, const Row &row) const |
Perform the actual remapping. | |
Static Public Member Functions | |
void | getIntervals (const string &mappings, bool &all_int, real &max_of_map, Vec &intervals_x, Vec &intervals_y) |
Protected Attributes | |
Vec | intervals_x_ |
Vec | intervals_y_ |
real | other_values_mapping_ |
Private Types | |
typedef SDBVMFieldDiscrete | inherited |
Definition at line 815 of file SDBVMat.h.
|
Reimplemented from PLearn::SDBVMFieldDiscrete. Definition at line 817 of file SDBVMat.h. Referenced by SDBVMFieldRemapIntervals(). |
|
Definition at line 868 of file SDBVMat.cc. References getIntervals(), inherited, intervals_x_, and intervals_y_. |
|
Perform the actual remapping.
Implements PLearn::SDBVMFieldDiscrete. Definition at line 886 of file SDBVMat.cc. References PLearn::binary_search(), PLearn::SDBVMSource::getValue(), intervals_x_, intervals_y_, and PLearn::FieldValue::isMissing(). |
|
This parses the remapping string and returns a map. Whether the target values are all non-negative integers is set in all_int. The maximum target value in the map is set into max_of_map. The intervals are returned in intervals_x and intervals_y Definition at line 820 of file SDBVMat.cc. References PLERROR, PLearn::TVec< T >::resize(), and PLearn::Vec. Referenced by SDBVMFieldRemapIntervals(). |
|
Definition at line 840 of file SDBVMat.h. Referenced by getDiscreteValue(), and SDBVMFieldRemapIntervals(). |
|
Definition at line 841 of file SDBVMat.h. Referenced by getDiscreteValue(), and SDBVMFieldRemapIntervals(). |
|
|