CEBL  2.1
Public Member Functions
CEBL::QDA Class Reference

#include <NN.hpp>

Public Member Functions

 QDA ()
void train (const EEGTrainingData &)
 train classifier over training data se
ublas::vector< int > use (const ublas::matrix< double > &)
 use classifier on data and return class
std::map< std::string,
CEBL::Param
getParamsList ()
 get and set the parameter list to the feature extractor
void setParamsList (std::map< std::string, CEBL::Param > &)
 set list of parameters
map< string, SerializedObjectsave () const
 serialize for saving to archive
void load (map< string, SerializedObject > objects)
 QDA ()
void train (const EEGTrainingData &)
 train classifier over training data se
ublas::vector< int > use (const ublas::matrix< double > &)
 use classifier on data and return class
std::map< std::string,
CEBL::Param
getParamsList ()
 get and set the parameter list to the feature extractor
void setParamsList (std::map< std::string, CEBL::Param > &)
 set the parameter list
map< string, SerializedObjectsave () const
 save plugin to list, and return it
void load (map< string, SerializedObject > objects)
- Public Member Functions inherited from CEBL::Classifier
 Classifier ()
virtual ~Classifier ()
bool isTrained ()
void reset (CEBL::Param param)
virtual bool getProbabilitiesFlag ()
virtual void setProbabilitiesFlag (bool flag)
virtual std::vector
< std::vector< double > > 
getProbabilities ()
int getTrainedClasses ()
int getTrainedLags ()
virtual void update (const EEGTrainingData &data)
- Public Member Functions inherited from CEBL::Plugin
 Plugin ()
virtual ~Plugin ()
void halt ()
 tell classifier to halt
string getName () const
 get the name of the plugin
virtual void load (map< string, SerializedObject > objects)
 load plugin from list of objects

Additional Inherited Members

- Protected Attributes inherited from CEBL::Classifier
bool trained
bool compute_probs
std::vector< std::vector
< double > > 
probabilities
int using_classes
int using_lags
int trained_classes
int trained_lags
- Protected Attributes inherited from CEBL::Plugin
string plugin_name
bool should_halt

Detailed Description

Definition at line 25 of file NN.hpp.


Constructor & Destructor Documentation

CEBL::QDA::QDA ( )
inline

Definition at line 36 of file NN.hpp.

References CEBL::Plugin::plugin_name.

CEBL::QDA::QDA ( )
inline

Definition at line 36 of file QDA.hpp.

References CEBL::Plugin::plugin_name.


Member Function Documentation

std::map< std::string, CEBL::Param > CEBL::QDA::getParamsList ( )
virtual

get and set the parameter list to the feature extractor

get list of parameters needed for classifier

Reimplemented from CEBL::Plugin.

Definition at line 197 of file NN.cpp.

std::map<std::string, CEBL::Param> CEBL::QDA::getParamsList ( )
virtual

get and set the parameter list to the feature extractor

Reimplemented from CEBL::Plugin.

void CEBL::QDA::load ( map< string, SerializedObject objects)
void CEBL::QDA::load ( map< string, SerializedObject objects)
map< string, SerializedObject > CEBL::QDA::save ( ) const
virtual

serialize for saving to archive

Reimplemented from CEBL::Plugin.

Definition at line 169 of file NN.cpp.

References CEBL::serialize().

map<string, SerializedObject> CEBL::QDA::save ( ) const
virtual

save plugin to list, and return it

Reimplemented from CEBL::Plugin.

void CEBL::QDA::setParamsList ( std::map< std::string, CEBL::Param > &  )
virtual

set the parameter list

Reimplemented from CEBL::Plugin.

void CEBL::QDA::setParamsList ( std::map< std::string, CEBL::Param > &  p)
virtual

set list of parameters

Reimplemented from CEBL::Plugin.

Definition at line 209 of file NN.cpp.

void CEBL::QDA::train ( const EEGTrainingData data)
virtual
void CEBL::QDA::train ( const EEGTrainingData )
virtual

train classifier over training data se

Implements CEBL::Classifier.

ublas::vector<int> CEBL::QDA::use ( const ublas::matrix< double > &  )
virtual

use classifier on data and return class

Implements CEBL::Classifier.

ublas::vector< int > CEBL::QDA::use ( const ublas::matrix< double > &  data)
virtual

use classifier on data and return class

Use classifier on data and return classes.

Implements CEBL::Classifier.

Definition at line 85 of file NN.cpp.

References cppR::apply(), cppR::asStdVector(), cppR::compDiv(), cppR::compProd(), cppR::createMatrix(), cppR::ncol(), cppR::nrow(), cppR::rowSums(), cppR::t(), and cppR::whichMax().


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