Classes | Functions
contrib/mul/clsfy/clsfy_classifier_1d.h File Reference

Describe an abstract classifier of 1D data. More...

#include <vcl_vector.h>
#include <vnl/vnl_vector.h>
#include <mbl/mbl_data_wrapper.h>
#include <vsl/vsl_binary_io.h>
#include <vcl_iostream.h>

Go to the source code of this file.

Classes

class  clsfy_classifier_1d
 A common interface for 1-out-of-N classifiers of 1D data. More...

Functions

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 &bfs, 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.
vcl_ostream & operator<< (vcl_ostream &os, const clsfy_classifier_1d &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_print_summary (vcl_ostream &os, const clsfy_classifier_1d &b)
 Stream output operator for class reference.
void vsl_print_summary (vcl_ostream &os, const clsfy_classifier_1d *b)
 Stream output operator for class pointer.
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.

Detailed Description

Describe an abstract classifier of 1D data.

Author:
Tim Cootes

Definition in file clsfy_classifier_1d.h.


Function Documentation

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,
const clsfy_classifier_1d 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 bfs,
const clsfy_classifier_1d b 
)

Binary file stream output operator for class reference.

Definition at line 116 of file clsfy_classifier_1d.cxx.

void vsl_print_summary ( vcl_ostream &  os,
const clsfy_classifier_1d b 
) [inline]

Stream output operator for class reference.

Definition at line 95 of file clsfy_classifier_1d.h.

void vsl_print_summary ( vcl_ostream &  os,
const clsfy_classifier_1d b 
) [inline]

Stream output operator for class pointer.

Definition at line 99 of file clsfy_classifier_1d.h.