#include <CumVMatrix.h>
Inheritance diagram for PLearn::CumVMatrix:
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< string > | columns_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< int > | columns |
bool | average |
Private Types | |
typedef SourceVMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
|
Reimplemented from PLearn::SourceVMatrix. Definition at line 54 of file CumVMatrix.h. Referenced by CumVMatrix(). |
|
Definition at line 50 of file CumVMatrix.cc. References inherited. |
|
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_(). |
|
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(). |
|
Declares this class' options.
Reimplemented from PLearn::SourceVMatrix. Definition at line 100 of file CumVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
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. |
|
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(). |
|
Declares name and deepCopy methods.
|
|
Definition at line 61 of file CumVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 65 of file CumVMatrix.h. Referenced by getNewRow(). |
|
Definition at line 64 of file CumVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 74 of file CumVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 63 of file CumVMatrix.h. Referenced by build_(), and getNewRow(). |
|
Definition at line 62 of file CumVMatrix.h. Referenced by build_(), and getNewRow(). |