LibXtract 1.6.0
xtract_delta.h File Reference
#include "xtract_types.h"
Include dependency graph for xtract_delta.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int xtract_flux (const double *data, const int N, const void *argv, double *result)
 Extract flux.
int xtract_lnorm (const double *data, const int N, const void *argv, double *result)
 Extract the L-norm of a vector.
int xtract_attack_time (const double *data, const int N, const void *argv, double *result)
 Extract the attack time of an envelope: the time from the first element that reaches the start fraction of the maximum to the first element from there that reaches the stop fraction.
int xtract_decay_time (const double *data, const int N, const void *argv, double *result)
 Extract the decay time of an envelope: the time from its maximum to the first later element at or below the threshold fraction of the maximum, or to the last element when none is.
int xtract_difference_vector (const double *data, const int N, const void *argv, double *result)
 Extract the difference between two vectors.
int xtract_kullback_leibler_divergence (const double *data, const int N, const void *argv, double *result)
 Extract the Kullback-Leibler divergence of the current spectral frame from the previous one, each frame scaled to sum to 1.
int xtract_itakura_saito_divergence (const double *data, const int N, const void *argv, double *result)
 Extract the Itakura-Saito divergence of the current spectral frame from the previous one.
int xtract_modified_kullback_leibler (const double *data, const int N, const void *argv, double *result)
 Extract the modified Kullback-Leibler onset function of Hainsworth and Macleod: the sum over the frame of the logarithm of 1 plus the ratio of each element to its value in the previous frame, so that an element rising from near silence dominates, an element falling by a large factor adds almost nothing and a gain common to both frames leaves the result almost unchanged.

Detailed Description

: declares functions that scalar or vector value from 2 or more input vectors