Package edu.wpi.first.math.filter
Class MedianFilter
java.lang.Object
edu.wpi.first.math.filter.MedianFilter
public class MedianFilter extends Object
A class that implements a moving-window median filter. Useful for reducing measurement noise,
especially with processes that generate occasional, extreme outliers (such as values from vision
processing, LIDAR, or ultrasonic sensors).
-
Constructor Summary
Constructors Constructor Description MedianFilter(int size)
Creates a new MedianFilter. -
Method Summary
-
Constructor Details
-
MedianFilter
Creates a new MedianFilter.- Parameters:
size
- The number of samples in the moving window.
-
-
Method Details