Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Halp detecting invalid values

Name: Anonymous 2013-06-25 13:38

Lets say i have this series of values, representing speeds:
50,60,60,120,61,65
The 120 is probably a read error, so i need to detect it as wrong and discard it. I know that because is 60, then 120, then 61.

But what if i have
50,60,60,120
And i discard 120 as out of range, but the next value is 121, and later 125. Then the 120 is probably ok. So i discard 120, but then i realize it is ok and i accept it again.

What algorithm can i use for that?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List