#include <MovingAverageVMatrix.h>
Inheritance diagram for PLearn::MovingAverageVMatrix:
Public Member Functions | |
MovingAverageVMatrix () | |
virtual void | getNewRow (int i, Vec &v) const |
This is the only method requiring implementation. | |
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 (MovingAverageVMatrix) | |
Declares name and deepCopy methods. | |
Public Attributes | |
TVec< string > | columns_to_average |
TVec< int > | window_sizes |
bool | centered_windows |
Static Protected Member Functions | |
void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Protected Attributes | |
Mat | sums |
Mat | ma |
TMat< int > | nnonmissing |
Vec | row |
Vec | previous_sourcerow |
TVec< int > | columns |
int | max_window_size |
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 MovingAverageVMatrix.h. Referenced by MovingAverageVMatrix(). |
|
Definition at line 50 of file MovingAverageVMatrix.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 203 of file MovingAverageVMatrix.cc. References build_(). |
|
This does the actual building.
Reimplemented from PLearn::SourceVMatrix. Definition at line 150 of file MovingAverageVMatrix.cc. References c_str(), PLearn::TMat< int >::clear(), columns, columns_to_average, PLearn::TMat< T >::fill(), PLearn::VMatrix::getMtime(), PLearn::VMatrix::hasFieldInfos(), PLearn::VMat::length(), PLearn::TVec< int >::length(), PLearn::TVec< string >::length(), ma, PLearn::max(), max_window_size, MISSING_VALUE, nnonmissing, PLERROR, previous_sourcerow, PLearn::TMat< int >::resize(), PLearn::TMat< T >::resize(), PLearn::TVec< int >::resize(), PLearn::TVec< T >::resize(), row, PLearn::TVec< T >::size(), PLearn::TVec< T >::subVec(), sums, PLearn::tostring(), PLearn::VMat::width(), and window_sizes. Referenced by build(). |
|
Declares this class' options.
Reimplemented from PLearn::SourceVMatrix. Definition at line 129 of file MovingAverageVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
This is the only method requiring implementation.
Definition at line 66 of file MovingAverageVMatrix.cc. References centered_windows, columns, columns_to_average, PLearn::is_missing(), k, PLearn::TVec< T >::length(), PLearn::TVec< string >::length(), PLearn::TVec< int >::length(), PLearn::VMatrix::length(), ma, max_window_size, PLearn::min(), MISSING_VALUE, nnonmissing, previous_sourcerow, row, sums, PLearn::Vec, and window_sizes. |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::SourceVMatrix. Definition at line 209 of file MovingAverageVMatrix.cc. References columns, columns_to_average, PLearn::deepCopyField(), sums, and window_sizes. |
|
Declares name and deepCopy methods.
|
|
Definition at line 78 of file MovingAverageVMatrix.h. Referenced by getNewRow(). |
|
Definition at line 66 of file MovingAverageVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 76 of file MovingAverageVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 62 of file MovingAverageVMatrix.h. Referenced by build_(), and getNewRow(). |
|
Definition at line 67 of file MovingAverageVMatrix.h. Referenced by build_(), and getNewRow(). |
|
Definition at line 63 of file MovingAverageVMatrix.h. Referenced by build_(), and getNewRow(). |
|
Definition at line 65 of file MovingAverageVMatrix.h. Referenced by build_(), and getNewRow(). |
|
Definition at line 64 of file MovingAverageVMatrix.h. Referenced by build_(), and getNewRow(). |
|
Definition at line 61 of file MovingAverageVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 77 of file MovingAverageVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |