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

PLearn::SourceVMatrixSplitter Class Reference

#include <SourceVMatrixSplitter.h>

Inheritance diagram for PLearn::SourceVMatrixSplitter:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SourceVMatrixSplitter ()
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 (SourceVMatrixSplitter)
 Declares name and deepCopy methods.

virtual void setDataSet (VMat the_dataset)
 Overridden to forward to underlying splitter.

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

PP< SourceVMatrixsource_vm
PP< Splittersource_splitter
int to_apply

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

Reimplemented from PLearn::Splitter.

Definition at line 58 of file SourceVMatrixSplitter.h.


Constructor & Destructor Documentation

PLearn::SourceVMatrixSplitter::SourceVMatrixSplitter  ) 
 

Definition at line 49 of file SourceVMatrixSplitter.cc.


Member Function Documentation

void PLearn::SourceVMatrixSplitter::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 89 of file SourceVMatrixSplitter.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 84 of file SourceVMatrixSplitter.cc.

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 59 of file SourceVMatrixSplitter.cc.

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

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

Returns split number i.

Implements PLearn::Splitter.

Definition at line 119 of file SourceVMatrixSplitter.cc.

References k, source_splitter, source_vm, and to_apply.

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

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::Splitter.

Definition at line 95 of file SourceVMatrixSplitter.cc.

References PLERROR.

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

Returns the number of sets per split.

Implements PLearn::Splitter.

Definition at line 114 of file SourceVMatrixSplitter.cc.

References source_splitter.

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

Returns the number of available different "splits".

Implements PLearn::Splitter.

Definition at line 109 of file SourceVMatrixSplitter.cc.

References source_splitter.

PLearn::SourceVMatrixSplitter::PLEARN_DECLARE_OBJECT SourceVMatrixSplitter   ) 
 

Declares name and deepCopy methods.

void PLearn::SourceVMatrixSplitter::setDataSet VMat  the_dataset  )  [virtual]
 

Overridden to forward to underlying splitter.

Reimplemented from PLearn::Splitter.

Definition at line 132 of file SourceVMatrixSplitter.cc.

References source_splitter.


Member Data Documentation

PP<Splitter> PLearn::SourceVMatrixSplitter::source_splitter
 

Definition at line 75 of file SourceVMatrixSplitter.h.

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

PP<SourceVMatrix> PLearn::SourceVMatrixSplitter::source_vm
 

Definition at line 74 of file SourceVMatrixSplitter.h.

Referenced by getSplit().

int PLearn::SourceVMatrixSplitter::to_apply
 

Definition at line 76 of file SourceVMatrixSplitter.h.

Referenced by getSplit().


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