#include <nearest_neighbor_classifier.h>
Public Member Functions | |
void | addTrainingPoint (std::string target_class, const std::vector< double > point) |
std::string | classifyPoint (const std::vector< double > point) |
void | clear () |
bool | load (const std::string filename) |
NearestNeighborClassifier () | |
void | save (const std::string filename) |
void | train () |
~NearestNeighborClassifier () | |
Public Attributes | |
ClassMap | class_data |
Definition at line 52 of file nearest_neighbor_classifier.h.
Definition at line 51 of file nearest_neighbor_classifier.cpp.
Definition at line 53 of file nearest_neighbor_classifier.cpp.
void ml_classifiers::NearestNeighborClassifier::addTrainingPoint | ( | std::string | target_class, |
const std::vector< double > | point | ||
) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 59 of file nearest_neighbor_classifier.cpp.
string ml_classifiers::NearestNeighborClassifier::classifyPoint | ( | const std::vector< double > | point | ) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 71 of file nearest_neighbor_classifier.cpp.
void ml_classifiers::NearestNeighborClassifier::clear | ( | ) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 66 of file nearest_neighbor_classifier.cpp.
bool ml_classifiers::NearestNeighborClassifier::load | ( | const std::string | filename | ) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 57 of file nearest_neighbor_classifier.cpp.
void ml_classifiers::NearestNeighborClassifier::save | ( | const std::string | filename | ) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 55 of file nearest_neighbor_classifier.cpp.
void ml_classifiers::NearestNeighborClassifier::train | ( | ) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 64 of file nearest_neighbor_classifier.cpp.
Definition at line 55 of file nearest_neighbor_classifier.h.