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

PLearn::CumVMatrix Class Reference

#include <CumVMatrix.h>

Inheritance diagram for PLearn::CumVMatrix:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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


Public Attributes

TVec< stringcolumns_to_accumulate

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

Mat accumulated_columns
Vec row
Vec previous_sourcerow
TVec< intcolumns
bool average

Private Types

typedef SourceVMatrix inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

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

Reimplemented from PLearn::SourceVMatrix.

Definition at line 54 of file CumVMatrix.h.

Referenced by CumVMatrix().


Constructor & Destructor Documentation

PLearn::CumVMatrix::CumVMatrix  ) 
 

Definition at line 50 of file CumVMatrix.cc.

References inherited.


Member Function Documentation

void PLearn::CumVMatrix::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 159 of file CumVMatrix.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 118 of file CumVMatrix.cc.

References accumulated_columns, c_str(), columns, columns_to_accumulate, PLearn::TMat< T >::fill(), PLearn::VMatrix::getMtime(), PLearn::VMatrix::hasFieldInfos(), PLearn::VMat::length(), PLearn::TVec< string >::length(), PLearn::max(), MISSING_VALUE, PLERROR, previous_sourcerow, PLearn::TMat< T >::resize(), PLearn::TVec< int >::resize(), PLearn::TVec< T >::resize(), row, PLearn::TVec< T >::size(), PLearn::TVec< T >::subVec(), and PLearn::VMat::width().

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 100 of file CumVMatrix.cc.

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

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

This is the only method requiring implementation.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 65 of file CumVMatrix.cc.

References accumulated_columns, average, columns, columns_to_accumulate, PLearn::is_missing(), k, PLearn::TVec< T >::length(), PLearn::TVec< string >::length(), PLearn::TVec< int >::length(), previous_sourcerow, row, and PLearn::Vec.

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

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 165 of file CumVMatrix.cc.

References accumulated_columns, columns, columns_to_accumulate, and PLearn::deepCopyField().

PLearn::CumVMatrix::PLEARN_DECLARE_OBJECT CumVMatrix   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

Mat PLearn::CumVMatrix::accumulated_columns [protected]
 

Definition at line 61 of file CumVMatrix.h.

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

bool PLearn::CumVMatrix::average [protected]
 

Definition at line 65 of file CumVMatrix.h.

Referenced by getNewRow().

TVec<int> PLearn::CumVMatrix::columns [protected]
 

Definition at line 64 of file CumVMatrix.h.

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

TVec<string> PLearn::CumVMatrix::columns_to_accumulate
 

Definition at line 74 of file CumVMatrix.h.

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

Vec PLearn::CumVMatrix::previous_sourcerow [protected]
 

Definition at line 63 of file CumVMatrix.h.

Referenced by build_(), and getNewRow().

Vec PLearn::CumVMatrix::row [protected]
 

Definition at line 62 of file CumVMatrix.h.

Referenced by build_(), and getNewRow().


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