@Test public void testSimpleMovingAverageQuick() { logger.info("simpleMovingAverageQuick"); double Yt = 23.5; double YtminusN = 20.0; double Ft = 23.0; int N = 3; double expResult = 24.166666666667; double result = Smoothing.simpleMovingAverageQuick(Yt, YtminusN, Ft, N); assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH); }
public static double simpleMovingAverageQuick(double Yt, double YtminusN, double Ft, int N) { double SMA=(Yt-YtminusN)/N+Ft; return SMA; }
Smoothing { public static double simpleMovingAverageQuick(double Yt, double YtminusN, double Ft, int N) { double SMA=(Yt-YtminusN)/N+Ft; return SMA; } }
Smoothing { public static double simpleMovingAverageQuick(double Yt, double YtminusN, double Ft, int N) { double SMA=(Yt-YtminusN)/N+Ft; return SMA; }  }
Smoothing { public static double simpleMovingAverageQuick(double Yt, double YtminusN, double Ft, int N) { double SMA=(Yt-YtminusN)/N+Ft; return SMA; }  static double simpleMovingAverage(FlatDataList flatDataList, int N); static double simpleMovingAverageQuick(double Yt, double YtminusN, double Ft, int N); static double weightedMovingAverage(FlatDataList flatDataList, int N); static double simpleExponentialSmoothing(FlatDataList flatDataList, double a); static double simpleExponentialSmoothingQuick(double Ytminus1, double Stminus1, double a); static double holtWintersSmoothing(FlatDataList flatDataList, int season_length, double alpha, double beta, double gamma, double dev_gamma); }
Smoothing { public static double simpleMovingAverageQuick(double Yt, double YtminusN, double Ft, int N) { double SMA=(Yt-YtminusN)/N+Ft; return SMA; }  static double simpleMovingAverage(FlatDataList flatDataList, int N); static double simpleMovingAverageQuick(double Yt, double YtminusN, double Ft, int N); static double weightedMovingAverage(FlatDataList flatDataList, int N); static double simpleExponentialSmoothing(FlatDataList flatDataList, double a); static double simpleExponentialSmoothingQuick(double Ytminus1, double Stminus1, double a); static double holtWintersSmoothing(FlatDataList flatDataList, int season_length, double alpha, double beta, double gamma, double dev_gamma);  }