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

PLearn::BootstrapSplitter Class Reference

#include <BootstrapSplitter.h>

Inheritance diagram for PLearn::BootstrapSplitter:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual void setDataSet (VMat the_dataset)
 Sets the dataset on which the splits are to be based.

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

real frac
int n_splits

Static Protected Member Functions

void declareOptions (OptionList &ol)
 Declares this class' options.


Protected Attributes

TMat< VMatbootstrapped_sets
 A (n_splits x 1) matrix containing all the splits, constructed at build time.


Private Types

typedef Splitter inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

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

Reimplemented from PLearn::Splitter.

Definition at line 54 of file BootstrapSplitter.h.


Constructor & Destructor Documentation

PLearn::BootstrapSplitter::BootstrapSplitter  ) 
 

Definition at line 47 of file BootstrapSplitter.cc.


Member Function Documentation

void PLearn::BootstrapSplitter::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 99 of file BootstrapSplitter.cc.

References build_().

Referenced by setDataSet().

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

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 77 of file BootstrapSplitter.cc.

References bootstrapped_sets, frac, n_splits, and PLearn::TMat< VMat >::resize().

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 59 of file BootstrapSplitter.cc.

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

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

Returns split number i.

Implements PLearn::Splitter.

Definition at line 131 of file BootstrapSplitter.cc.

References bootstrapped_sets, k, PLearn::TMat< VMat >::length(), n_splits, and PLERROR.

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

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::Splitter.

Definition at line 105 of file BootstrapSplitter.cc.

References PLERROR.

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

Returns the number of sets per split.

Implements PLearn::Splitter.

Definition at line 125 of file BootstrapSplitter.cc.

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

Returns the number of available different "splits".

Implements PLearn::Splitter.

Definition at line 119 of file BootstrapSplitter.cc.

References n_splits.

PLearn::BootstrapSplitter::PLEARN_DECLARE_OBJECT BootstrapSplitter   ) 
 

Declares name and deepCopy methods.

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

Sets the dataset on which the splits are to be based.

Reimplemented from PLearn::Splitter.

Definition at line 145 of file BootstrapSplitter.cc.

References build().


Member Data Documentation

TMat<VMat> PLearn::BootstrapSplitter::bootstrapped_sets [protected]
 

A (n_splits x 1) matrix containing all the splits, constructed at build time.

Definition at line 60 of file BootstrapSplitter.h.

Referenced by build_(), and getSplit().

real PLearn::BootstrapSplitter::frac
 

Definition at line 75 of file BootstrapSplitter.h.

Referenced by build_().

int PLearn::BootstrapSplitter::n_splits
 

Definition at line 76 of file BootstrapSplitter.h.

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


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