@Test public void testConstructorNoInitSeasonalsMultiplicative() { final HoltWintersPointForecasterParams params = HoltWintersAustouristsTestHelper.buildAustouristsParams(HoltWintersSeasonalityType.MULTIPLICATIVE); HoltWintersOnlineComponents subject = new HoltWintersOnlineComponents(params); Assert.assertArrayEquals(HoltWintersAustouristsTestHelper.MULTIPLICATIVE_IDENTITY_SEASONALS, subject.getSeasonal(), TOLERANCE); }
public double getSeasonal(int seasonalIdx) { return seasonal[seasonalIdx]; }
HoltWintersOnlineComponents { public double getSeasonal(int seasonalIdx) { return seasonal[seasonalIdx]; } }
HoltWintersOnlineComponents { public double getSeasonal(int seasonalIdx) { return seasonal[seasonalIdx]; } HoltWintersOnlineComponents(HoltWintersPointForecasterParams params); }
HoltWintersOnlineComponents { public double getSeasonal(int seasonalIdx) { return seasonal[seasonalIdx]; } HoltWintersOnlineComponents(HoltWintersPointForecasterParams params); long getN(); double getSeasonal(int seasonalIdx); double[] getReverseHistorySeasonals(); void setSeasonal(int seasonalIdx, double seasonalValue, double observed); void addValue(double observed); double getSeasonalStandardDeviation(int seasonalIdx); int getCurrentSeasonalIndex(); }
HoltWintersOnlineComponents { public double getSeasonal(int seasonalIdx) { return seasonal[seasonalIdx]; } HoltWintersOnlineComponents(HoltWintersPointForecasterParams params); long getN(); double getSeasonal(int seasonalIdx); double[] getReverseHistorySeasonals(); void setSeasonal(int seasonalIdx, double seasonalValue, double observed); void addValue(double observed); double getSeasonalStandardDeviation(int seasonalIdx); int getCurrentSeasonalIndex();  }