|
typedef struct xtract_last_n_state_ | xtract_last_n_state |
|
|
xtract_last_n_state * | xtract_last_n_state_new (size_t capacity) |
|
void | xtract_last_n_state_delete (xtract_last_n_state *last_n_state) |
|
int | xtract_last_n (const xtract_last_n_state *state, const double *data, const int N, const void *argv, double *result) |
|
Functions that extract a feature over multiple frames
int xtract_last_n |
( |
const xtract_last_n_state * |
state, |
|
|
const double * |
data, |
|
|
const int |
N, |
|
|
const void * |
argv, |
|
|
double * |
result |
|
) |
| |
Write a vector of the last N input values to result
- Parameters
-
state | a pointer to an xtract_peak_picker_state struct as allocated by xtract_peak_picker_state_new() |
data | a pointer to a double representing the current input value |
N | an integer representing 'N' the number of values to be written to *result |
argv | a pointer to NULL |
result | a pointer to an array of doubles representing the last N values, where the nth value is the current one. The array must have been allocated to size N elements and initialised by the caller |