#include <FractionSplitter.h>
Inheritance diagram for PLearn::FractionSplitter:
Public Member Functions | |
FractionSplitter () | |
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 (FractionSplitter) | |
Declares name and deepCopy methods. | |
virtual int | nsplits () const |
Returns the number of available different "splits". | |
virtual int | nSetsPerSplit () const |
Returns the number of sets per split. | |
virtual TVec< VMat > | getSplit (int i=0) |
Returns split number i. | |
Public Attributes | |
bool | round_to_closest |
TMat< pair< real, real > > | splits |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Private Types | |
typedef Splitter | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
|
Reimplemented from PLearn::Splitter. Definition at line 53 of file FractionSplitter.h. |
|
Definition at line 45 of file FractionSplitter.cc. |
|
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::Object. Definition at line 84 of file FractionSplitter.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::Object. Definition at line 79 of file FractionSplitter.cc. Referenced by build(). |
|
Declares this class' options.
Reimplemented from PLearn::Object. Definition at line 56 of file FractionSplitter.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
Returns split number i.
Implements PLearn::Splitter. Definition at line 115 of file FractionSplitter.cc. References PLearn::TVec< T >::first(), k, PLearn::VMat::length(), PLearn::TVec< T >::length(), round_to_closest, splits, and PLearn::VMat::subMatRows(). |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::Splitter. Definition at line 90 of file FractionSplitter.cc. References PLERROR. |
|
Returns the number of sets per split.
Implements PLearn::Splitter. Definition at line 109 of file FractionSplitter.cc. References splits, and PLearn::TMat< pair< real, real > >::width(). |
|
Returns the number of available different "splits".
Implements PLearn::Splitter. Definition at line 104 of file FractionSplitter.cc. References PLearn::TMat< pair< real, real > >::length(), and splits. |
|
Declares name and deepCopy methods.
|
|
Definition at line 70 of file FractionSplitter.h. Referenced by getSplit(). |
|
Definition at line 71 of file FractionSplitter.h. Referenced by getSplit(), nSetsPerSplit(), and nsplits(). |