SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
sspmod_math_fun.c File Reference

Execute some mathematical functions in a (ssp-)standard way, checking/updating keys if necessary. More...

Functions

int spr_math_fun_setup (SprSspInfo *Info, const char **descript, void *aux_info)
 
int spr_math_fun_process (SprSspInfo *Info, const void *frame_in, void *frame_out)
 
void spr_math_fun_free (SprSspInfo *Info)
 

Detailed Description

Execute some mathematical functions in a (ssp-)standard way, checking/updating keys if necessary.


[math_fun]
dB2pow [given/jah/normal] [b]
Calculates exp10(input/10.0)/b, with 'b' [given/2^(-15)(jah)/1.0(normal)]. Default normal.
pow2dB [given/jah/normal] [a] [b]
Calculates 10.0*log10(a+b*input), with 'a' [given/1.0(jah)/0.0(normal)] and 'b' [given/2^(-15)/1.0]. Default normal.
floor <value>
Floor the input parameters with a constant.
energy
Calculates energy in input vector: sum(x[i]^2).

See Also
ssp_master.c
Date
21 Nov 1994
Author
Jacques Duchateau