Public Member Functions | Public Attributes
ml_classifiers::NearestNeighborClassifier Class Reference

#include <nearest_neighbor_classifier.h>

Inheritance diagram for ml_classifiers::NearestNeighborClassifier:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 52 of file nearest_neighbor_classifier.h.


Constructor & Destructor Documentation

Definition at line 51 of file nearest_neighbor_classifier.cpp.

Definition at line 53 of file nearest_neighbor_classifier.cpp.


Member Function Documentation

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.

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.

Implements ml_classifiers::Classifier.

Definition at line 64 of file nearest_neighbor_classifier.cpp.


Member Data Documentation

Definition at line 55 of file nearest_neighbor_classifier.h.


The documentation for this class was generated from the following files:


ml_classifiers
Author(s): Scott Niekum
autogenerated on Thu Aug 27 2015 13:59:04