Describe an abstract classifier of 1D data. More...
#include "clsfy_classifier_1d.h"
#include <vcl_iostream.h>
#include <vcl_cassert.h>
#include <vcl_vector.h>
#include <vsl/vsl_indent.h>
#include <vsl/vsl_binary_loader.h>
Go to the source code of this file.
Functions | |
vcl_ostream & | operator<< (vcl_ostream &os, clsfy_classifier_1d const &b) |
Stream output operator for class reference. | |
vcl_ostream & | operator<< (vcl_ostream &os, const clsfy_classifier_1d *b) |
Stream output operator for class pointer. | |
void | vsl_add_to_binary_loader (const clsfy_classifier_1d &b) |
Allows derived class to be loaded by base-class pointer. | |
void | vsl_b_write (vsl_b_ostream &os, const clsfy_classifier_1d &b) |
Binary file stream output operator for class reference. | |
void | vsl_b_read (vsl_b_istream &bfs, clsfy_classifier_1d &b) |
Binary file stream input operator for class reference. | |
double | clsfy_test_error (const clsfy_classifier_1d &classifier, mbl_data_wrapper< double > &test_inputs, const vcl_vector< unsigned > &test_outputs) |
Calculate the fraction of test samples which are classified incorrectly. |
Describe an abstract classifier of 1D data.
Definition in file clsfy_classifier_1d.cxx.
double clsfy_test_error | ( | const clsfy_classifier_1d & | classifier, |
mbl_data_wrapper< double > & | test_inputs, | ||
const vcl_vector< unsigned > & | test_outputs | ||
) |
Calculate the fraction of test samples which are classified incorrectly.
Definition at line 130 of file clsfy_classifier_1d.cxx.
vcl_ostream& operator<< | ( | vcl_ostream & | os, |
clsfy_classifier_1d const & | b | ||
) |
Stream output operator for class reference.
Definition at line 88 of file clsfy_classifier_1d.cxx.
vcl_ostream& operator<< | ( | vcl_ostream & | os, |
const clsfy_classifier_1d * | b | ||
) |
Stream output operator for class pointer.
Definition at line 99 of file clsfy_classifier_1d.cxx.
void vsl_add_to_binary_loader | ( | const clsfy_classifier_1d & | b | ) |
Allows derived class to be loaded by base-class pointer.
Definition at line 109 of file clsfy_classifier_1d.cxx.
void vsl_b_read | ( | vsl_b_istream & | bfs, |
clsfy_classifier_1d & | b | ||
) |
Binary file stream input operator for class reference.
Definition at line 123 of file clsfy_classifier_1d.cxx.
void vsl_b_write | ( | vsl_b_ostream & | os, |
const clsfy_classifier_1d & | b | ||
) |
Binary file stream output operator for class reference.
Definition at line 116 of file clsfy_classifier_1d.cxx.