python - removing error from the data read from the distance measuring sensor -


i using ultrasonic sensor read water level using python.there 5% chances of getting wrong value sensor. 5% not variation of value actual value. percentage of getting wrong value. causes correct , wrong values @ same place. how can remove 5% error values data? data sample looks this.

45.1,45.3,45.4,45.7,46.6,47.1,47.9,48.1,48.4,48.8,49.1,49.2,49.1,46.2,45.2,45.7,45.8,43.6,45.6,44.6

these 20 values. 1 (5%) out of these 20 values wrong want exclude.

thank you!


Comments

Popular posts from this blog

How to group boxplot outliers in gnuplot -

cakephp - simple blog with croogo -

bash - Performing variable substitution in a string -