#include <nearest_neighbor_classifier.hpp>
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 Member Functions inherited from ml_classifiers::Classifier | |
Classifier () | |
virtual | ~Classifier () |
Public Attributes | |
ClassMap | class_data |
Definition at line 49 of file nearest_neighbor_classifier.hpp.
ml_classifiers::NearestNeighborClassifier::NearestNeighborClassifier | ( | ) |
Definition at line 45 of file nearest_neighbor_classifier.cpp.
ml_classifiers::NearestNeighborClassifier::~NearestNeighborClassifier | ( | ) |
Definition at line 47 of file nearest_neighbor_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 56 of file nearest_neighbor_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 69 of file nearest_neighbor_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 64 of file nearest_neighbor_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 51 of file nearest_neighbor_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 49 of file nearest_neighbor_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 62 of file nearest_neighbor_classifier.cpp.
ClassMap ml_classifiers::NearestNeighborClassifier::class_data |
Definition at line 52 of file nearest_neighbor_classifier.hpp.