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

PLearn::CenteredVMatrix Class Reference

#include <CenteredVMatrix.h>

Inheritance diagram for PLearn::CenteredVMatrix:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CenteredVMatrix ()
 Default constructor.

 CenteredVMatrix (VMat the_source)
 Constructed from an existing source matrix.

Vec getMu () const
 Return the mean sample mu.

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


Protected Member Functions

virtual void getNewRow (int i, const Vec &v) const
 This is the only method requiring implementation.


Static Protected Member Functions

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


Protected Attributes

Vec mu
 The sample mean.


Private Types

typedef SourceVMatrix inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef SourceVMatrix PLearn::CenteredVMatrix::inherited [private]
 

Reimplemented from PLearn::SourceVMatrix.

Definition at line 57 of file CenteredVMatrix.h.


Constructor & Destructor Documentation

PLearn::CenteredVMatrix::CenteredVMatrix  ) 
 

Default constructor.

Definition at line 53 of file CenteredVMatrix.cc.

PLearn::CenteredVMatrix::CenteredVMatrix VMat  the_source  ) 
 

Constructed from an existing source matrix.

Definition at line 57 of file CenteredVMatrix.cc.

References build().


Member Function Documentation

void PLearn::CenteredVMatrix::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::SourceVMatrix.

Definition at line 89 of file CenteredVMatrix.cc.

References build_().

Referenced by CenteredVMatrix().

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

This does the actual building.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 99 of file CenteredVMatrix.cc.

References PLearn::computeMean(), mu, and PLearn::SourceVMatrix::setMetaInfoFromSource().

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 70 of file CenteredVMatrix.cc.

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

Vec PLearn::CenteredVMatrix::getMu  )  const
 

Return the mean sample mu.

Definition at line 119 of file CenteredVMatrix.cc.

References mu.

void PLearn::CenteredVMatrix::getNewRow int  i,
const Vec v
const [protected, virtual]
 

This is the only method requiring implementation.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 126 of file CenteredVMatrix.cc.

References mu.

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

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 135 of file CenteredVMatrix.cc.

References PLERROR.

PLearn::CenteredVMatrix::PLEARN_DECLARE_OBJECT CenteredVMatrix   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

Vec PLearn::CenteredVMatrix::mu [protected]
 

The sample mean.

Definition at line 68 of file CenteredVMatrix.h.

Referenced by build_(), getMu(), and getNewRow().


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