GClasses

GClasses::GSequenceNeighborFinder Class Reference

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>

Inheritance diagram for GClasses::GSequenceNeighborFinder:
GClasses::GNeighborFinder

List of all members.

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.

Detailed Description

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


Constructor & Destructor Documentation

GClasses::GSequenceNeighborFinder::GSequenceNeighborFinder ( GMatrix pData,
int  neighborCount 
)
virtual GClasses::GSequenceNeighborFinder::~GSequenceNeighborFinder ( ) [virtual]

Member Function Documentation

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.