Package science.aist.jack.math.filter
Class ZeroBufferedSlidingWindowMedian
- java.lang.Object
-
- science.aist.jack.math.filter.SlidingWindowMedian<Double>
-
- science.aist.jack.math.filter.ZeroBufferedSlidingWindowMedian
-
- All Implemented Interfaces:
GenericSlidingWindow<Double,Double>
,SlidingWindow<Double>
public class ZeroBufferedSlidingWindowMedian extends SlidingWindowMedian<Double>
ZeroBufferedSlidingWindowMedian
Extension of the
SlidingWindowMedian
, that only allows uneven kernels. This ensures that, by 0 buffering the data, the resulting filtered list is the same length as the input list. Useful for stuff like elementwise subtraction- Since:
- 2.1.0
- Author:
- Rainer Meindl
- See Also:
SlidingWindowMedian
-
-
Constructor Summary
Constructors Constructor Description ZeroBufferedSlidingWindowMedian()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Double>
filter(List<Double> data, int kernel)
Uses the kernel to group the data and filter the resulting subdatasets based on a filtering method
-
-
-
Method Detail
-
filter
public List<Double> filter(List<Double> data, int kernel)
Description copied from interface:SlidingWindow
Uses the kernel to group the data and filter the resulting subdatasets based on a filtering method
- Specified by:
filter
in interfaceGenericSlidingWindow<Double,Double>
- Specified by:
filter
in interfaceSlidingWindow<Double>
- Overrides:
filter
in classSlidingWindowMedian<Double>
- Parameters:
data
- the data to filterkernel
- the kernel, or window size- Returns:
- a List of the filtered data
-
-