ESP
0.1
The Example-based Sensor Predictions (ESP) system tries to bring machine learning to the maker community.
|
Public Member Functions | |
LogEnergy (UINT filterSize=5, UINT numDimensions=1) | |
double | computeFilter (const VectorDouble &buf) |
Public Member Functions inherited from GRT::Filter | |
Filter (const char *classType, UINT filterSize=5, UINT numDimensions=1) | |
Filter (const Filter &rhs) | |
virtual | ~Filter () |
Filter & | operator= (const Filter &rhs) |
virtual bool | deepCopyFrom (const PreProcessing *preProcessing) |
virtual bool | process (const VectorDouble &inputVector) |
virtual bool | reset () |
virtual bool | saveModelToFile (string filename) const |
virtual bool | saveModelToFile (fstream &file) const |
virtual bool | loadModelFromFile (string filename) |
virtual bool | loadModelFromFile (fstream &file) |
bool | init (UINT filterSize, UINT numDimensions) |
double | filter (const double x) |
VectorDouble | filter (const VectorDouble &x) |
UINT | getFilterSize () const |
VectorDouble | getFilteredData () const |
vector< VectorDouble > | getDataBuffer () const |
Additional Inherited Members | |
Protected Attributes inherited from GRT::Filter | |
UINT | filterSize |
The size of the filter. More... | |
UINT | inputSampleCounter |
A counter to keep track of the number of input samples. More... | |
CircularBuffer< VectorDouble > | dataBuffer |
A buffer to store the previous N values, N = filterSize. More... | |
|
inline |
|
inlinevirtual |
Compute the filter. This is implemented by the derived class and called separately on each dimension of the input data.
const | VectorDouble buf: the values to filter, i.e. the last filterSize (or fewer) values read within a particular dimension |
Implements GRT::Filter.