Package Filters
Class SmoothingFilter
java.lang.Object
Filters.SmoothingFilter
Smoothing filter which is basically a moving abstract filter
but it operates once on a finite amount of data
and does not insert any delays (unlike MovingAveragefilter which
handles infinite streams, but adds a delay)
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic double[]
smoothData
(double[] data, int smooth) Smooth data with a moving average filter.
-
Constructor Details
-
SmoothingFilter
public SmoothingFilter()
-
-
Method Details
-
smoothData
public static double[] smoothData(double[] data, int smooth) Smooth data with a moving average filter.- Parameters:
data
- data to smoothsmooth
- - bins to smooth over. Should be odd, will be incremented if not.- Returns:
- smoothed data
-