#include <LocalNeighborsDifferencesVMatrix.h>
Inheritance diagram for PLearn::LocalNeighborsDifferencesVMatrix:
Public Member Functions | |
LocalNeighborsDifferencesVMatrix () | |
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 (LocalNeighborsDifferencesVMatrix) | |
Declares name and deepCopy methods. | |
Public Attributes | |
int | n_neighbors |
bool | concat_neighbors |
bool | append_indexes |
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 | |
TMat< int > | neighbors |
Private Types | |
typedef SourceVMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. | |
Private Attributes | |
Vec | neighbor_row |
Used to store data and save memory allocations. | |
Vec | ith_row |
Used to store data and save memory allocations. | |
Vec | a_row |
Used to store data and save memory allocations. | |
Vec | diff_k |
Used to store data and save memory allocations. |
|
Reimplemented from PLearn::SourceVMatrix. Definition at line 57 of file LocalNeighborsDifferencesVMatrix.h. Referenced by LocalNeighborsDifferencesVMatrix(). |
|
Definition at line 51 of file LocalNeighborsDifferencesVMatrix.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 160 of file LocalNeighborsDifferencesVMatrix.cc. References build_(). Referenced by PLearn::local_neighbors_differences(). |
|
This does the actual building.
Reimplemented from PLearn::SourceVMatrix. Definition at line 130 of file LocalNeighborsDifferencesVMatrix.cc. References a_row, append_indexes, PLearn::computeNearestNeighbors(), concat_neighbors, PLearn::VMat::length(), PLearn::TMat< int >::length(), n_neighbors, neighbors, PLearn::TVec< T >::resize(), PLearn::TMat< int >::resize(), and PLearn::VMat::width(). Referenced by build(). |
|
Declares this class' options.
Reimplemented from PLearn::SourceVMatrix. Definition at line 115 of file LocalNeighborsDifferencesVMatrix.cc. References PLearn::declareOption(), and PLearn::OptionList. |
|
This is the only method requiring implementation.
Reimplemented from PLearn::SourceVMatrix. Definition at line 64 of file LocalNeighborsDifferencesVMatrix.cc. References append_indexes, concat_neighbors, diff_k, ith_row, k, PLearn::Mat, n_neighbors, neighbor_row, neighbors, PLERROR, PLearn::TVec< T >::resize(), PLearn::substract(), PLearn::TVec< T >::toMat(), PLearn::Vec, and PLearn::VMat::width(). |
|
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::SourceVMatrix. Definition at line 166 of file LocalNeighborsDifferencesVMatrix.cc. References a_row, PLearn::deepCopyField(), ith_row, neighbor_row, and neighbors. |
|
Declares name and deepCopy methods.
|
|
Used to store data and save memory allocations.
Definition at line 60 of file LocalNeighborsDifferencesVMatrix.h. Referenced by build_(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 81 of file LocalNeighborsDifferencesVMatrix.h. Referenced by build_(), getNewRow(), and PLearn::local_neighbors_differences(). |
|
Definition at line 80 of file LocalNeighborsDifferencesVMatrix.h. Referenced by build_(), getNewRow(), and PLearn::local_neighbors_differences(). |
|
Used to store data and save memory allocations.
Definition at line 60 of file LocalNeighborsDifferencesVMatrix.h. Referenced by getNewRow(). |
|
Used to store data and save memory allocations.
Definition at line 60 of file LocalNeighborsDifferencesVMatrix.h. Referenced by getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 79 of file LocalNeighborsDifferencesVMatrix.h. Referenced by build_(), getNewRow(), and PLearn::local_neighbors_differences(). |
|
Used to store data and save memory allocations.
Definition at line 60 of file LocalNeighborsDifferencesVMatrix.h. Referenced by getNewRow(), and makeDeepCopyFromShallowCopy(). |
|
Definition at line 65 of file LocalNeighborsDifferencesVMatrix.h. Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy(). |