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

PLearn::ExplicitSplitter Class Reference

#include <ExplicitSplitter.h>

Inheritance diagram for PLearn::ExplicitSplitter:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

TMat< VMatsplitsets
 The datasets of the split.


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::ExplicitSplitter::inherited [private]
 

Reimplemented from PLearn::Splitter.

Definition at line 50 of file ExplicitSplitter.h.


Constructor & Destructor Documentation

PLearn::ExplicitSplitter::ExplicitSplitter  ) 
 

Definition at line 46 of file ExplicitSplitter.cc.


Member Function Documentation

void PLearn::ExplicitSplitter::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 68 of file ExplicitSplitter.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 63 of file ExplicitSplitter.cc.

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 56 of file ExplicitSplitter.cc.

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

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

Returns split number i.

Implements PLearn::Splitter.

Definition at line 91 of file ExplicitSplitter.cc.

References k, and splitsets.

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

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::Splitter.

Definition at line 74 of file ExplicitSplitter.cc.

References PLearn::deepCopyField(), and splitsets.

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

Returns the number of sets per split.

Implements PLearn::Splitter.

Definition at line 85 of file ExplicitSplitter.cc.

References splitsets, and PLearn::TMat< VMat >::width().

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

Returns the number of available different "splits".

Implements PLearn::Splitter.

Definition at line 80 of file ExplicitSplitter.cc.

References PLearn::TMat< VMat >::length(), and splitsets.

PLearn::ExplicitSplitter::PLEARN_DECLARE_OBJECT ExplicitSplitter   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

TMat<VMat> PLearn::ExplicitSplitter::splitsets
 

The datasets of the split.

Definition at line 63 of file ExplicitSplitter.h.

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


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