06-07-2007 02:39 AM
06-07-2007 04:24 AM
A simple moving average can be computed in a loop passing as input array your gData + offset and an appropriate number of samples to fit your 2 seconds:
for (i = 0, index = 0; i < totalsamples - 2SecWindow; i+= 2SecWindow) {
Mean (gData + i, 2SecWindow, &avg[index]);
index++;
}
06-07-2007 07:27 AM
06-08-2007 04:44 AM