ESP  0.1
The Example-based Sensor Predictions (ESP) system tries to bring machine learning to the maker community.
GRT::MFCC Class Reference

#include <MFCC.h>

Inheritance diagram for GRT::MFCC:

Classes

struct  Options
 

Public Member Functions

 MFCC (struct Options options=Options())
 
 MFCC (const MFCC &rhs)
 
MFCCoperator= (const MFCC &rhs)
 
bool deepCopyFrom (const FeatureExtraction *featureExtraction) override
 
 ~MFCC () override
 
void initialize ()
 
bool computeFeatures (const VectorDouble &inputVector) override
 
bool reset () override
 
bool setNoiseLevel (double noise_level)
 
bool saveModelToFile (string filename) const override
 
bool loadModelFromFile (string filename) override
 
bool saveModelToFile (fstream &file) const override
 
bool loadModelFromFile (fstream &file) override
 
struct Options getOptions () const
 
TriFilterBanks getFilters () const
 
void computeLFBE (const vector< double > &fft, vector< double > &lfbe)
 
void computeCC (const vector< double > &lfbe, vector< double > &cc)
 
vector< double > getCC (const vector< double > &lfbe)
 
vector< double > lifterCC (const vector< double > &cc)
 

Protected Attributes

bool initialized_
 
Options options_
 
double * dct_matrix_
 
TriFilterBanks filters_
 
vector< double > tmp_lfbe_
 
vector< double > tmp_cc_
 

Static Protected Attributes

static RegisterFeatureExtractionModule< MFCCregisterModule
 

Constructor & Destructor Documentation

GRT::MFCC::MFCC ( struct Options  options = Options())
GRT::MFCC::MFCC ( const MFCC rhs)
GRT::MFCC::~MFCC ( )
inlineoverride

Member Function Documentation

void GRT::MFCC::computeCC ( const vector< double > &  lfbe,
vector< double > &  cc 
)
bool GRT::MFCC::computeFeatures ( const VectorDouble &  inputVector)
override
void GRT::MFCC::computeLFBE ( const vector< double > &  fft,
vector< double > &  lfbe 
)
bool GRT::MFCC::deepCopyFrom ( const FeatureExtraction *  featureExtraction)
override
vector< double > GRT::MFCC::getCC ( const vector< double > &  lfbe)
TriFilterBanks GRT::MFCC::getFilters ( ) const
inline
struct Options GRT::MFCC::getOptions ( ) const
inline
void GRT::MFCC::initialize ( )
vector< double > GRT::MFCC::lifterCC ( const vector< double > &  cc)
bool GRT::MFCC::loadModelFromFile ( string  filename)
override
bool GRT::MFCC::loadModelFromFile ( fstream &  file)
override
MFCC & GRT::MFCC::operator= ( const MFCC rhs)
bool GRT::MFCC::reset ( )
override
bool GRT::MFCC::saveModelToFile ( string  filename) const
override
bool GRT::MFCC::saveModelToFile ( fstream &  file) const
override
bool GRT::MFCC::setNoiseLevel ( double  noise_level)
inline

Member Data Documentation

double* GRT::MFCC::dct_matrix_
protected
TriFilterBanks GRT::MFCC::filters_
protected
bool GRT::MFCC::initialized_
protected
Options GRT::MFCC::options_
protected
RegisterFeatureExtractionModule< MFCC > GRT::MFCC::registerModule
staticprotected
vector<double> GRT::MFCC::tmp_cc_
protected
vector<double> GRT::MFCC::tmp_lfbe_
protected

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