|
Olaf
Overly Lightweight Acoustic Fingerprinting
|
Lemire Max filter implementation. More...
Functions | |
| void | olaf_lemire_max_filter (float *array, size_t array_size, size_t filter_width, float *maxvalues) |
| Apply a Lemire max filter to an array. | |
| void | olaf_max_filter_naive (float *array, size_t array_size, size_t filter_width, float *maxvalues) |
| A naive max filter implementation for reference. | |
| void | olaf_max_filter (float *array, size_t array_size, size_t filter_width, float *maxvalues) |
| An other, preferably faster, implementation. | |
Lemire Max filter implementation.
See https://github.com/lemire/runningmaxmin/blob/master/runningmaxmin.h, Available under LGPL.
Daniel Lemire, Streaming Maximum-Minimum Filter Using No More than Three Comparisons per Element. Nordic Journal of Computing, 13 (4), pages 328-339, 2006.
| void olaf_lemire_max_filter | ( | float * | array, |
| size_t | array_size, | ||
| size_t | filter_width, | ||
| float * | maxvalues ) |
Apply a Lemire max filter to an array.
| array | The input array of float values. |
| array_size | The number of elements in the array. |
| filter_width | The width of the max filter window. |
| maxvalues | The output array for filtered max values. |
| void olaf_max_filter | ( | float * | array, |
| size_t | array_size, | ||
| size_t | filter_width, | ||
| float * | maxvalues ) |
An other, preferably faster, implementation.
| array | The array. | |
| [in] | array_size | The array size. |
| [in] | filter_width | The filter width. |
| maxvalues | The array of values to filter. |
| void olaf_max_filter_naive | ( | float * | array, |
| size_t | array_size, | ||
| size_t | filter_width, | ||
| float * | maxvalues ) |
A naive max filter implementation for reference.
| array | The array. | |
| [in] | array_size | The array size. |
| [in] | filter_width | The max filter width. |
| maxvalues | The array of values to filter. |