Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::FractionSplitter Class Reference

#include <FractionSplitter.h>

Inheritance diagram for PLearn::FractionSplitter:

Inheritance graph
[legend]
Collaboration diagram for PLearn::FractionSplitter:

Collaboration graph
[legend]
List of all members.

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< VMatgetSplit (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.


Member Typedef Documentation

typedef Splitter PLearn::FractionSplitter::inherited [private]
 

Reimplemented from PLearn::Splitter.

Definition at line 53 of file FractionSplitter.h.


Constructor & Destructor Documentation

PLearn::FractionSplitter::FractionSplitter  ) 
 

Definition at line 45 of file FractionSplitter.cc.


Member Function Documentation

void PLearn::FractionSplitter::build  )  [virtual]
 

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_().

void PLearn::FractionSplitter::build_  )  [private]
 

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 79 of file FractionSplitter.cc.

Referenced by build().

void PLearn::FractionSplitter::declareOptions OptionList ol  )  [static, protected]
 

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 56 of file FractionSplitter.cc.

References PLearn::declareOption(), and PLearn::OptionList.

TVec< VMat > PLearn::FractionSplitter::getSplit int  i = 0  )  [virtual]
 

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().

void PLearn::FractionSplitter::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::Splitter.

Definition at line 90 of file FractionSplitter.cc.

References PLERROR.

int PLearn::FractionSplitter::nSetsPerSplit  )  const [virtual]
 

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().

int PLearn::FractionSplitter::nsplits  )  const [virtual]
 

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.

PLearn::FractionSplitter::PLEARN_DECLARE_OBJECT FractionSplitter   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

bool PLearn::FractionSplitter::round_to_closest
 

Definition at line 70 of file FractionSplitter.h.

Referenced by getSplit().

TMat< pair<real, real> > PLearn::FractionSplitter::splits
 

Definition at line 71 of file FractionSplitter.h.

Referenced by getSplit(), nSetsPerSplit(), and nsplits().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:26:18 2004 for PLearn by doxygen 1.3.7