LibXtract  0.6.2
Functions
`delta' extraction functions

Functions

int xtract_flux (const float *data, const int N, const void *argv, float *result)
 Extract flux. More...
 
int xtract_lnorm (const float *data, const int N, const void *argv, float *result)
 Extract the L-norm of a vector. More...
 
int xtract_attack_time (const float *data, const int N, const void *argv, float *result)
 Extract attack Time.
 
int xtract_decay_time (const float *data, const int N, const void *argv, float *result)
 
int xtract_difference_vector (const float *data, const int N, const void *argv, float *result)
 Extract the difference between two vectors. More...
 

Detailed Description

Functions that extract a scalar or vector value from 2 or more input vectors

Function Documentation

◆ xtract_decay_time()

int xtract_decay_time ( const float *  data,
const int  N,
const void *  argv,
float *  result 
)

Extract temporal decrease

◆ xtract_difference_vector()

int xtract_difference_vector ( const float *  data,
const int  N,
const void *  argv,
float *  result 
)

Extract the difference between two vectors.

Parameters
*dataa pointer to an array representing two distinct vectors, e.g. two successive magnitude spectra.
Nthe size of the array pointed to by *data
*argva pointer to NULL
*resulta pointer to an array of size N / 2 representing the difference between the two input vectors.

◆ xtract_flux()

int xtract_flux ( const float *  data,
const int  N,
const void *  argv,
float *  result 
)

Extract flux.

Note
FIX: don't be lazy – take the lnorm of the difference vector! An alias for xtract_lnorm()

◆ xtract_lnorm()

int xtract_lnorm ( const float *  data,
const int  N,
const void *  argv,
float *  result 
)

Extract the L-norm of a vector.

Parameters
*dataa pointer to the first element in an array of floats representing the difference between two subsequent frames of output from a vector-based feature e.g. the *result from xtract_difference_vector()
Nthe length of the array pointed to by *data
*argva pointer to an array of floats, the first representing the "norm order". The second argument represents the filter type determining what values we consider from the difference vector as given in the enumeration xtract_lnorm_filter_types_ (libxtract.h)
*resulta pointer to a float representing the flux