Computes the Short Time Energy. More...
#include <ste.h>
Public Member Functions | |
STEExtr (int chunkSize=0) | |
Default constructor. | |
bool | extract (std::deque< uint16_t > data, int size) |
Run the algorithm and store the results. | |
float | value (int index=0) |
Retrive the results (from the index). | |
int | size () |
Get the number of available values. | |
float | min () |
Lower bound on outputted values. | |
float | max () |
Upper bound on outputted values (about 2^30) | |
void | setInt (string key, int value) |
Set a int parameter (available : "square", which is 0 or 1) | |
int | getInt (string key) |
Get a int parameter (available : "square", which is 0 or 1) | |
Public Member Functions inherited from FeatureExtractor | |
FeatureExtractor (int chunkSize=0) | |
Constructor. Can set the typical chunk size. | |
virtual | ~FeatureExtractor () |
Virtual destructor : enables each extractor to delete arrays. | |
bool | extract (std::deque< uint16_t > data, int size, size_t start) |
Idem, but the buffer starts at index start instead (circular buffer) | |
virtual float | safeValue (int index=0) |
Retrieve the results, with the bounds respected (we apply a min / max) | |
virtual float | value (int index, float low, float high) |
Retrieve the results, with other bounds. | |
virtual void | setFloat (string key, float value) |
Set a float parameter. | |
virtual float | getFloat (string key) |
Get a float parameter. | |
virtual void | setString (string key, string value) |
Set a string parameter. | |
virtual string | getString (string key) |
Get a string parameter. | |
virtual void | clear () |
Clear the memory of the extractor (so that the previously computed results don't infer to the next ones) |
Computes the Short Time Energy.