Public Member Functions | Static Public Member Functions
clsfy_builder_base Class Reference

Base for classes to build clsfy_classifier_base objects. More...

#include <clsfy_builder_base.h>

Inheritance diagram for clsfy_builder_base:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~clsfy_builder_base ()
virtual clsfy_classifier_basenew_classifier () const =0
 Create empty model.
virtual double build (clsfy_classifier_base &model, mbl_data_wrapper< vnl_vector< double > > &inputs, unsigned nClasses, const vcl_vector< unsigned > &outputs) const =0
 Build model from data.
virtual vcl_string is_a () const
 Name of the class.
virtual bool is_class (vcl_string const &s) const
 Name of the class.
virtual clsfy_builder_baseclone () const =0
 Create a copy on the heap and return base class pointer.
virtual void print_summary (vcl_ostream &os) const =0
 Print class to os.
virtual void b_write (vsl_b_ostream &bfs) const =0
 Save class to binary file stream.
virtual void b_read (vsl_b_istream &bfs)=0
 Load class from binary file stream.
virtual void config (vcl_istream &as)
 Initialise the parameters from a text stream.

Static Public Member Functions

static vcl_auto_ptr
< clsfy_builder_base
new_builder (vcl_istream &as)
 Load description from a text stream.

Detailed Description

Base for classes to build clsfy_classifier_base objects.

Definition at line 25 of file clsfy_builder_base.h.


Constructor & Destructor Documentation

virtual clsfy_builder_base::~clsfy_builder_base ( ) [inline, virtual]

Definition at line 29 of file clsfy_builder_base.h.


Member Function Documentation

virtual void clsfy_builder_base::b_read ( vsl_b_istream bfs) [pure virtual]
virtual void clsfy_builder_base::b_write ( vsl_b_ostream bfs) const [pure virtual]
virtual double clsfy_builder_base::build ( clsfy_classifier_base model,
mbl_data_wrapper< vnl_vector< double > > &  inputs,
unsigned  nClasses,
const vcl_vector< unsigned > &  outputs 
) const [pure virtual]
virtual clsfy_builder_base* clsfy_builder_base::clone ( ) const [pure virtual]
void clsfy_builder_base::config ( vcl_istream &  as) [virtual]

Initialise the parameters from a text stream.

Default case accepts no parameters.

Reimplemented in clsfy_rbf_svm_smo_1_builder, clsfy_parzen_builder, clsfy_knn_builder, clsfy_null_builder, and clsfy_binary_1d_wrapper_builder.

Definition at line 26 of file clsfy_builder_base.cxx.

vcl_string clsfy_builder_base::is_a ( ) const [virtual]
bool clsfy_builder_base::is_class ( vcl_string const &  s) const [virtual]
vcl_auto_ptr< clsfy_builder_base > clsfy_builder_base::new_builder ( vcl_istream &  as) [static]

Load description from a text stream.

The stream should contain the name of the feature extractor class that will be used, followed by a brace-enclosed list of parameters for the builder. This function will construct the appropriate clsfy_builder_base derivative and return that.

Exceptions:
ifthe parse fails.

Definition at line 42 of file clsfy_builder_base.cxx.

virtual clsfy_classifier_base* clsfy_builder_base::new_classifier ( ) const [pure virtual]
virtual void clsfy_builder_base::print_summary ( vcl_ostream &  os) const [pure virtual]

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