What does median filter mean?
A filter that keeps the last few readings and outputs the middle one after sorting. Unlike an average, it ignores a minority of wild readings: a median of five survives two outliers untouched.
In a lesson
Drive towards the wall with a median filter and a gate running, and stop 35 cm from it, without being fooled by the robot that crosses in front. Plot
rawandmedian, and printthrown out:, the number of readings your gate rejected.
Learn it
- Taught in U4.4 Outliers Noise and filtering, University