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

PLearn::BootstrapVMatrix Class Reference

#include <BootstrapVMatrix.h>

Inheritance diagram for PLearn::BootstrapVMatrix:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BootstrapVMatrix ()
 BootstrapVMatrix (VMat m, real frac, bool shuffle=false)
 Construct a boostrap of another VMatrix.

 PLEARN_DECLARE_OBJECT (BootstrapVMatrix)
virtual void build ()
 Should call simply inherited::build(), then this class's build_().


Static Public Member Functions

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


Public Attributes

real frac
 Public build options.

bool shuffle

Private Types

typedef SelectRowsVMatrix inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef SelectRowsVMatrix PLearn::BootstrapVMatrix::inherited [private]
 

Reimplemented from PLearn::SelectRowsVMatrix.

Definition at line 52 of file BootstrapVMatrix.h.


Constructor & Destructor Documentation

PLearn::BootstrapVMatrix::BootstrapVMatrix  ) 
 

Definition at line 58 of file BootstrapVMatrix.cc.

References PLearn::shuffle().

PLearn::BootstrapVMatrix::BootstrapVMatrix VMat  m,
real  frac,
bool  shuffle = false
 

Construct a boostrap of another VMatrix.

Definition at line 63 of file BootstrapVMatrix.cc.

References build(), and PLearn::shuffle().


Member Function Documentation

void PLearn::BootstrapVMatrix::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::SelectRowsVMatrix.

Definition at line 91 of file BootstrapVMatrix.cc.

References build_().

Referenced by BootstrapVMatrix().

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

This does the actual building.

Reimplemented from PLearn::SelectRowsVMatrix.

Definition at line 100 of file BootstrapVMatrix.cc.

References frac, PLearn::VMat::length(), shuffle, PLearn::shuffleElements(), PLearn::sortElements(), and PLearn::TVec< int >::subVec().

Referenced by build().

void PLearn::BootstrapVMatrix::declareOptions OptionList ol  )  [static]
 

Declares this class' options.

Reimplemented from PLearn::SelectRowsVMatrix.

Definition at line 74 of file BootstrapVMatrix.cc.

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

PLearn::BootstrapVMatrix::PLEARN_DECLARE_OBJECT BootstrapVMatrix   ) 
 


Member Data Documentation

real PLearn::BootstrapVMatrix::frac
 

Public build options.

Definition at line 57 of file BootstrapVMatrix.h.

Referenced by build_().

bool PLearn::BootstrapVMatrix::shuffle
 

Definition at line 58 of file BootstrapVMatrix.h.

Referenced by build_().


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