Class ModulusFilter

  • All Implemented Interfaces:
    SampleProvider

    public class ModulusFilter
    extends AbstractFilter
    Simple filter that adjusts the sample to use a specified zero value mod a given value
    Author:
    Lawrie Griffiths
    • Constructor Detail

      • ModulusFilter

        public ModulusFilter​(SampleProvider source,
                             float[] zeroValue,
                             float modulus)
    • Method Detail

      • fetchSample

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