Class CenteredMovingAverage


  • public class CenteredMovingAverage
    extends Object
    Helper methods for Centered Moving Average.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • CenteredMovingAverage

        public CenteredMovingAverage()
    • Method Detail

      • calculate

        public static double[] calculate​(double[] points,
                                         int window)
        Applies Centered Moving Average to the data points.
        Parameters:
        points - the data to smooth
        window - 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 smooth
        window - 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