Assuming these values are on some sort of sine wave, couldn't one compare each sample and throw out the result if the difference is greater than a certain percentage. (or rather than through it out, use an average of the two samples surrounding the corrupt data as an approximation.)

One problem I see with this is that there may be 5-10 samples in a row that are corrupt, no way to know.

By the way, I am NOT a programming expert by any stretch of the imagination, just thinking out loud.


Edited by lectric (18/08/2006 19:00)