A class for computing the average between a set of features (usually for the spectrum) More...
#include <range.h>
Public Member Functions | |
| void | transform (vector< float > data) |
| Do the actual computation on the features. | |
| int | size () |
| Returns the number of available features : parent->size() / blocksize (+ 1) | |
| float | min () |
| Lower bound : the same as parent's. | |
| float | max () |
| Higher bound : the same as parent's. | |
| float | value (int index) |
| Get the result (the index points to the desired block) | |
| void | setInt (string key, int value) |
| Set a int parameter (available : start, end, blocksize) | |
| int | getInt (string key) |
| Get a int parameter (available : start, end, blocksize) | |
Public Member Functions inherited from Filter | |
| Filter () | |
| Default constructor : does nothing yet. | |
| virtual | ~Filter () |
| Destructor (inherited from FeatureExtractor) | |
| FeatureExtractor * | bind (FeatureExtractor *extr) |
| Binds the filter to the output of an extractor (or another filter). Returns the old one. | |
| bool | extract (std::deque< uint16_t > data, int size=0) |
| Extract data This method should not be reimplemented by the user. The given parameters are ignored : the data is drawn from the upstream extractor without taking care of the raw data. | |
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) | |
Additional Inherited Members | |
Protected Member Functions inherited from Filter | |
| virtual void | parentChanged () |
| Callback called when the upstream extractor changes. | |
Protected Attributes inherited from Filter | |
| FeatureExtractor * | mExtr |
| The extractor from which the data is drawn. | |
A class for computing the average between a set of features (usually for the spectrum)
|
virtual |
Get a int parameter (available : start, end, blocksize)
Get a int parameter (available : start, end)
Reimplemented from FeatureExtractor.
|
virtual |
Set a int parameter (available : start, end, blocksize)
Set a int parameter (available : start, end)
Reimplemented from FeatureExtractor.
1.8.1.1