GClasses
|
A simple neighbor-finder that reports the nearest neighbors in the sequence. (That is, the previous and next rows are the closest neighbors.) The distance is sequential distance to the neighbor (not squared). More...
#include <GNeighborFinder.h>
Public Member Functions | |
GSequenceNeighborFinder (GMatrix *pData, int neighborCount) | |
virtual | ~GSequenceNeighborFinder () |
virtual void | neighbors (size_t *pOutNeighbors, size_t index) |
Computes the neighbors of the specified vector. | |
virtual void | neighbors (size_t *pOutNeighbors, double *pOutDistances, size_t index) |
Computes the neighbors and distances of the specified vector. |
A simple neighbor-finder that reports the nearest neighbors in the sequence. (That is, the previous and next rows are the closest neighbors.) The distance is sequential distance to the neighbor (not squared).
GClasses::GSequenceNeighborFinder::GSequenceNeighborFinder | ( | GMatrix * | pData, |
int | neighborCount | ||
) |
virtual GClasses::GSequenceNeighborFinder::~GSequenceNeighborFinder | ( | ) | [virtual] |
virtual void GClasses::GSequenceNeighborFinder::neighbors | ( | size_t * | pOutNeighbors, |
size_t | index | ||
) | [virtual] |
Computes the neighbors of the specified vector.
Implements GClasses::GNeighborFinder.
virtual void GClasses::GSequenceNeighborFinder::neighbors | ( | size_t * | pOutNeighbors, |
double * | pOutDistances, | ||
size_t | index | ||
) | [virtual] |
Computes the neighbors and distances of the specified vector.
Implements GClasses::GNeighborFinder.