Package adams.data.utils
Class CenteredMovingAverage
- java.lang.Object
-
- adams.data.utils.CenteredMovingAverage
-
public class CenteredMovingAverage extends Object
Helper methods for Centered Moving Average.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description CenteredMovingAverage()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double[]calculate(double[] points, int window)Applies Centered Moving Average to the data points.static List<Point2D>calculate(List<Point2D> points, int window)Applies Centered Moving Average to the Y of the data points.static TechnicalInformationgetTechnicalInformation()Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
-
-
-
Method Detail
-
calculate
public static double[] calculate(double[] points, int window)Applies Centered Moving Average to the data points.- Parameters:
points- the data to smoothwindow- the window size (uneven number)- Returns:
- the smoothed points
-
calculate
public static List<Point2D> calculate(List<Point2D> points, int window)
Applies Centered Moving Average to the Y of the data points.- Parameters:
points- the data to smoothwindow- the window size (uneven number)- Returns:
- the smoothed points
-
getTechnicalInformation
public static TechnicalInformation getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- Returns:
- the technical information about this class
-
-