GClasses
|
Finds neighbors by measuring the distance to all points. This one should work properly even if the distance metric does not support the triangle inequality. More...
#include <GNeighborFinder.h>
Public Member Functions | |
GBruteForceNeighborFinder (GMatrix *pData, size_t neighborCount, GDistanceMetric *pMetric, bool ownMetric) | |
virtual | ~GBruteForceNeighborFinder () |
virtual size_t | addCopy (const double *pVector) |
Add a point-vector. | |
virtual double * | releaseVector (size_t nIndex) |
Returns a point-vector (and removes it from the internal set). You are responsible to delete it. | |
virtual void | reoptimize () |
This is a no-op method in this class. | |
virtual void | neighbors (size_t *pOutNeighbors, size_t index) |
See the comment for GNeighborFinder::neighbors. | |
virtual void | neighbors (size_t *pOutNeighbors, double *pOutDistances, size_t index) |
See the comment for GNeighborFinder::neighbors. | |
virtual void | neighbors (size_t *pOutNeighbors, double *pOutDistances, const double *pInputVector) |
See the comment for GNeighborFinderGeneralizing::neighbors. |
Finds neighbors by measuring the distance to all points. This one should work properly even if the distance metric does not support the triangle inequality.
GClasses::GBruteForceNeighborFinder::GBruteForceNeighborFinder | ( | GMatrix * | pData, |
size_t | neighborCount, | ||
GDistanceMetric * | pMetric, | ||
bool | ownMetric | ||
) |
virtual GClasses::GBruteForceNeighborFinder::~GBruteForceNeighborFinder | ( | ) | [virtual] |
virtual size_t GClasses::GBruteForceNeighborFinder::addCopy | ( | const double * | pVector | ) | [virtual] |
Add a point-vector.
Implements GClasses::GNeighborFinderGeneralizing.
virtual void GClasses::GBruteForceNeighborFinder::neighbors | ( | size_t * | pOutNeighbors, |
size_t | index | ||
) | [virtual] |
See the comment for GNeighborFinder::neighbors.
Implements GClasses::GNeighborFinder.
virtual void GClasses::GBruteForceNeighborFinder::neighbors | ( | size_t * | pOutNeighbors, |
double * | pOutDistances, | ||
size_t | index | ||
) | [virtual] |
See the comment for GNeighborFinder::neighbors.
Implements GClasses::GNeighborFinder.
virtual void GClasses::GBruteForceNeighborFinder::neighbors | ( | size_t * | pOutNeighbors, |
double * | pOutDistances, | ||
const double * | pInputVector | ||
) | [virtual] |
See the comment for GNeighborFinderGeneralizing::neighbors.
Implements GClasses::GNeighborFinderGeneralizing.
virtual double* GClasses::GBruteForceNeighborFinder::releaseVector | ( | size_t | nIndex | ) | [virtual] |
Returns a point-vector (and removes it from the internal set). You are responsible to delete it.
Implements GClasses::GNeighborFinderGeneralizing.
virtual void GClasses::GBruteForceNeighborFinder::reoptimize | ( | ) | [virtual] |
This is a no-op method in this class.
Implements GClasses::GNeighborFinderGeneralizing.