Extracts the Low STE Ratio (STE stands for Short Time Energy) More...
#include <lster.h>
Public Member Functions | |
LSTERExtr (int chunkSize=0) | |
Default constructor. | |
~LSTERExtr () | |
Destructor. | |
STEExtr * | setSTEExtractor (STEExtr *extr) |
Set the STE extractor (the previous one is returned) | |
bool | extract (std::deque< uint16_t > data, int size) |
Run the algorithm and store the results. | |
float | value (int index=0) |
Retrieve the results (from the index). | |
int | size () |
Get the number of available values. | |
float | min () |
Lower bound on the outputted values. | |
float | max () |
Upper bound on the outputted values. | |
void | setFloat (string key, float value) |
Set a float parameter (available : "bound", from 0 to 1) | |
void | setInt (string key, int value) |
Set a int parameter (available : "chunkSize") | |
float | getFloat (string key) |
Get a float parameter (available : "bound") | |
int | getInt (string key) |
Get a int parameter (available : "chunkSize") | |
void | clear () |
Clear the extractor (forget the previous results) | |
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 | setString (string key, string value) |
Set a string parameter. | |
virtual string | getString (string key) |
Get a string parameter. |
Extracts the Low STE Ratio (STE stands for Short Time Energy)
|
virtual |
Set a float parameter (available : "bound", from 0 to 1)
Set a float parameter (available : "bound")
Reimplemented from FeatureExtractor.