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

PLearn::LocalNeighborsDifferencesVMatrix Class Reference

#include <LocalNeighborsDifferencesVMatrix.h>

Inheritance diagram for PLearn::LocalNeighborsDifferencesVMatrix:

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

Collaboration graph
[legend]
List of all members.

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< intneighbors

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.


Member Typedef Documentation

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

Reimplemented from PLearn::SourceVMatrix.

Definition at line 57 of file LocalNeighborsDifferencesVMatrix.h.

Referenced by LocalNeighborsDifferencesVMatrix().


Constructor & Destructor Documentation

PLearn::LocalNeighborsDifferencesVMatrix::LocalNeighborsDifferencesVMatrix  ) 
 

Definition at line 51 of file LocalNeighborsDifferencesVMatrix.cc.

References inherited.


Member Function Documentation

void PLearn::LocalNeighborsDifferencesVMatrix::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 160 of file LocalNeighborsDifferencesVMatrix.cc.

References build_().

Referenced by PLearn::local_neighbors_differences().

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

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().

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

Declares this class' options.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 115 of file LocalNeighborsDifferencesVMatrix.cc.

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

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

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().

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

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.

PLearn::LocalNeighborsDifferencesVMatrix::PLEARN_DECLARE_OBJECT LocalNeighborsDifferencesVMatrix   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

Vec PLearn::LocalNeighborsDifferencesVMatrix::a_row [mutable, private]
 

Used to store data and save memory allocations.

Definition at line 60 of file LocalNeighborsDifferencesVMatrix.h.

Referenced by build_(), and makeDeepCopyFromShallowCopy().

bool PLearn::LocalNeighborsDifferencesVMatrix::append_indexes
 

Definition at line 81 of file LocalNeighborsDifferencesVMatrix.h.

Referenced by build_(), getNewRow(), and PLearn::local_neighbors_differences().

bool PLearn::LocalNeighborsDifferencesVMatrix::concat_neighbors
 

Definition at line 80 of file LocalNeighborsDifferencesVMatrix.h.

Referenced by build_(), getNewRow(), and PLearn::local_neighbors_differences().

Vec PLearn::LocalNeighborsDifferencesVMatrix::diff_k [mutable, private]
 

Used to store data and save memory allocations.

Definition at line 60 of file LocalNeighborsDifferencesVMatrix.h.

Referenced by getNewRow().

Vec PLearn::LocalNeighborsDifferencesVMatrix::ith_row [mutable, private]
 

Used to store data and save memory allocations.

Definition at line 60 of file LocalNeighborsDifferencesVMatrix.h.

Referenced by getNewRow(), and makeDeepCopyFromShallowCopy().

int PLearn::LocalNeighborsDifferencesVMatrix::n_neighbors
 

Definition at line 79 of file LocalNeighborsDifferencesVMatrix.h.

Referenced by build_(), getNewRow(), and PLearn::local_neighbors_differences().

Vec PLearn::LocalNeighborsDifferencesVMatrix::neighbor_row [mutable, private]
 

Used to store data and save memory allocations.

Definition at line 60 of file LocalNeighborsDifferencesVMatrix.h.

Referenced by getNewRow(), and makeDeepCopyFromShallowCopy().

TMat<int> PLearn::LocalNeighborsDifferencesVMatrix::neighbors [protected]
 

Definition at line 65 of file LocalNeighborsDifferencesVMatrix.h.

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


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