Holds information on distance and data-class membership of neighbors processed in Classifier_kNN. More...
#include <classifier_knn.hpp>
Public Member Functions | |
| Neighbour (const RETURNTYPE value, const DIMTYPE cls) | |
constructs from a distance value and the neighbour's class cls | |
| Neighbour (const Neighbour &nei) | |
| copy constructor | |
Public Attributes | |
| RETURNTYPE | _value |
| distance from the pattern being classified to this training neighbour | |
| DIMTYPE | _cls |
| the training neighbour's class | |
Holds information on distance and data-class membership of neighbors processed in Classifier_kNN.