lowpass.c
337 Bytes
/***************************************************************
*
* lowpass.c
* the DC normalized low-pass function
*
* 1/3/95 bfs initial version
*
*/
#include "lowpass.h"
float
low_pass_filter(struct lp_info* lp)
{
lp->out_data = lp->in_data * (1.0 - lp->coef)
+ lp->out_data * lp->coef;
return lp->out_data;
}