#include <ManualBinner.h>
Inheritance diagram for PLearn::ManualBinner:
Public Types | |
typedef Binner | inherited |
Public Member Functions | |
ManualBinner () | |
ManualBinner (Vec bin_positions_) | |
Constructor with predefined cut points. | |
virtual void | build () |
Should call simply inherited::build(), then this class's build_(). | |
virtual void | makeDeepCopyFromShallowCopy (map< const void *, void * > &copies) |
Transforms a shallow copy into a deep copy. | |
PLEARN_DECLARE_OBJECT (ManualBinner) | |
Declares name and deepCopy methods. | |
virtual PP< RealMapping > | getBinning (VMat v) const |
Returns a binning for a single column vmatrix v. | |
virtual PP< RealMapping > | getBinning () const |
Public Attributes | |
Vec | bin_positions |
The supplied cut points; should be sorted in ascending order. | |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Protected Attributes | |
PP< RealMapping > | the_mapping |
Private Member Functions | |
void | build_ () |
This does the actual building. |
|
Reimplemented from PLearn::Binner. Definition at line 59 of file ManualBinner.h. |
|
Definition at line 45 of file ManualBinner.cc. |
|
Constructor with predefined cut points.
Definition at line 54 of file ManualBinner.cc. References build_(), std::copy(), and PLearn::Vec. |
|
Should call simply inherited::build(), then this class's build_(). This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object. Reimplemented from PLearn::Binner. Definition at line 89 of file ManualBinner.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::Binner. Definition at line 78 of file ManualBinner.cc. References bin_positions, PLearn::TVec< T >::length(), and the_mapping. Referenced by build(), and ManualBinner(). |
|
Declares this class' options.
Reimplemented from PLearn::Binner. Definition at line 66 of file ManualBinner.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Definition at line 115 of file ManualBinner.cc. References the_mapping. |
|
Returns a binning for a single column vmatrix v.
Reimplemented from PLearn::Binner. Definition at line 112 of file ManualBinner.cc. References the_mapping. |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::Binner. Definition at line 96 of file ManualBinner.cc. References PLERROR. |
|
Declares name and deepCopy methods.
|
|
The supplied cut points; should be sorted in ascending order.
Definition at line 66 of file ManualBinner.h. Referenced by build_(). |
|
Definition at line 55 of file ManualBinner.h. Referenced by build_(), and getBinning(). |