CEBL  2.1
Public Member Functions
CEBL::Lag Class Reference

#include <Lag.hpp>

Public Member Functions

 Lag ()
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
ublas::matrix< double > use (const ublas::matrix< double > &)
 use feature on data and return new matrix
void reset ()
 reset the buffer
map< string, SerializedObjectsave () const
 save plugin to list, and return it
void load (map< string, SerializedObject > objects)
 load plugin from list of objects
- Public Member Functions inherited from CEBL::Feature
virtual ~Feature ()
void setSampleRate (int sample_rate)
virtual bool needsTraining ()
virtual void train ()
virtual bool isTrained ()
- 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

Additional Inherited Members

- Protected Attributes inherited from CEBL::Feature
int sample_rate
- Protected Attributes inherited from CEBL::Plugin
string plugin_name
bool should_halt

Detailed Description

Definition at line 26 of file Lag.hpp.


Constructor & Destructor Documentation

CEBL::Lag::Lag ( )

Definition at line 8 of file Lag.cpp.


Member Function Documentation

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

get and set the parameter list to the feature extractor

get list of parameters needed for feature

Reimplemented from CEBL::Plugin.

Definition at line 16 of file Lag.cpp.

References CEBL::Param::setMax(), and CEBL::Param::setMin().

void CEBL::Lag::load ( map< string, SerializedObject objects)
virtual

load plugin from list of objects

Reimplemented from CEBL::Plugin.

Definition at line 95 of file Lag.cpp.

References CEBL::deserialize().

void CEBL::Lag::reset ( )
virtual

reset the buffer

reset the lag buffer

Reimplemented from CEBL::Feature.

Definition at line 101 of file Lag.cpp.

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

save plugin to list, and return it

Reimplemented from CEBL::Plugin.

Definition at line 88 of file Lag.cpp.

References CEBL::serialize().

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

set list of parameters

Reimplemented from CEBL::Plugin.

Definition at line 28 of file Lag.cpp.

ublas::matrix< double > CEBL::Lag::use ( const ublas::matrix< double > &  data)
virtual

use feature on data and return new matrix

featureize data and return the result

Implements CEBL::Feature.

Definition at line 42 of file Lag.cpp.

References cppR::Lag(), cppR::ncol(), cppR::nrow(), and cppR::submatrix().


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