Class containing different implementations of the nearest neighbor classificator. More...
#include <NearestNeighbor.h>

Public Types | |
| enum | ComputationMethod { eBruteForce, eKdTree, eBruteForceGPU } |
Public Member Functions | |
| int | Classify (const float *pQuery, int nDimension, float &fResultError) |
| bool | Classify (const float *pQueries, int nDimension, int nQueries, int *pResults, float *pResultErrors) |
| CNearestNeighbor (ComputationMethod method) | |
| void | SetKdTreeMaxLeaves (int nKdTreeMaxLeaves) |
| bool | Train (const float *pData, int nDimension, int nDataSets) |
| ~CNearestNeighbor () | |
Public Member Functions inherited from CClassificatorInterface | |
| virtual | ~CClassificatorInterface () |
Private Attributes | |
| bool | m_bTrained |
| ComputationMethod | m_method |
| int | m_nDataSets |
| int | m_nDimension |
| int | m_nKdTreeMaxLeaves |
| float * | m_pData |
| CKdTree * | m_pKdTree |
Class containing different implementations of the nearest neighbor classificator.
Definition at line 71 of file NearestNeighbor.h.
| Enumerator | |
|---|---|
| eBruteForce | |
| eKdTree | |
| eBruteForceGPU | |
Definition at line 74 of file NearestNeighbor.h.
| CNearestNeighbor::CNearestNeighbor | ( | ComputationMethod | method | ) |
Definition at line 63 of file NearestNeighbor.cpp.
| CNearestNeighbor::~CNearestNeighbor | ( | ) |
Definition at line 74 of file NearestNeighbor.cpp.
|
virtual |
Implements CClassificatorInterface.
Definition at line 154 of file NearestNeighbor.cpp.
|
virtual |
Implements CClassificatorInterface.
Definition at line 221 of file NearestNeighbor.cpp.
|
inline |
Definition at line 89 of file NearestNeighbor.h.
|
virtual |
Implements CClassificatorInterface.
Definition at line 91 of file NearestNeighbor.cpp.
|
private |
Definition at line 102 of file NearestNeighbor.h.
|
private |
Definition at line 103 of file NearestNeighbor.h.
|
private |
Definition at line 98 of file NearestNeighbor.h.
|
private |
Definition at line 97 of file NearestNeighbor.h.
|
private |
Definition at line 101 of file NearestNeighbor.h.
|
private |
Definition at line 99 of file NearestNeighbor.h.
|
private |
Definition at line 100 of file NearestNeighbor.h.