Whats the C coding for a low pass filter - rod8902/grrc2016 GitHub Wiki
https://www.quora.com/Whats-the-C-coding-for-a-low-pass-filter
void lowPassFrequency(double* input, double* output, int points)
{
double RC = 1.0/(CUTOFF23.14);
double dt = 1.0/SAMPLE_RATE;
double alpha = dt/(RC+dt);
output[0] = input[0]
for(int i = 1; i < points; ++i)
{
output[i] = output[i-1] + (alpha*(input[i] - output[i-1]));
}
}