ema_tc2coef
Same as previous function, but take as input the time constant (in samples).
Namespace: dsp::filter
Prototype
float ema_tc2coef(float tc)
Parameters
tc | Time constant, in number of samples. |
Returns
Coeficient \(\gamma\) for the IIR filter
Description
This function computes the forget factor for a first order IIR filter (that is, an exponential filter), as a function of the desired time constant.