Package Filters

Class SmoothingFilter

java.lang.Object
Filters.SmoothingFilter

public class SmoothingFilter extends Object
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 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 smooth
      smooth - - bins to smooth over. Should be odd, will be incremented if not.
      Returns:
      smoothed data