Class MinimumFilter

  • All Implemented Interfaces:
    SampleProvider

    public class MinimumFilter
    extends SampleBuffer
    This filter returns the minimum values found in the N most recent samples.
    The number of samples used is specified in the constructor of the filter.
    Author:
    Aswin
    • Constructor Detail

      • MinimumFilter

        public MinimumFilter​(SampleProvider source,
                             int bufferSize)
    • Method Detail

      • fetchSample

        public void fetchSample​(float[] sample,
                                int off)
        Description copied from interface: SampleProvider
        Fetches a sample from a sensor or filter.
        Specified by:
        fetchSample in interface SampleProvider
        Overrides:
        fetchSample in class SampleBuffer
        Parameters:
        sample - The array to store the sample in.
        off - The elements of the sample are stored in the array starting at the offset position.