Filters
Class SmoothingFilter

java.lang.Object
  extended by Filters.SmoothingFilter

public class SmoothingFilter
extends java.lang.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 Summary
SmoothingFilter()
           
 
Method Summary
static double[] smoothData(double[] data, int smooth)
          Smooth data with a moving average filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmoothingFilter

public SmoothingFilter()
Method Detail

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