@Test public void testValidAdditiveSeasonalEstimatesIsValid() { subject.validate(VALID_ADDITIVE_SEASONAL_COMPONENT, DUMMY_FREQUENCY, HoltWintersSeasonalityType.ADDITIVE); }
public void validate(double[] initSeasonalEstimates, int frequency, HoltWintersSeasonalityType seasonalityType) { checkNotNull(initSeasonalEstimates); if (initSeasonalEstimates.length <= 0) return; checkLength(initSeasonalEstimates, frequency); checkSumOfEstimates(initSeasonalEstimates, frequency, seasonalityType); }
HoltWintersSeasonalEstimatesValidator { public void validate(double[] initSeasonalEstimates, int frequency, HoltWintersSeasonalityType seasonalityType) { checkNotNull(initSeasonalEstimates); if (initSeasonalEstimates.length <= 0) return; checkLength(initSeasonalEstimates, frequency); checkSumOfEstimates(initSeasonalEstimates, frequency, seasonalityType); } }
HoltWintersSeasonalEstimatesValidator { public void validate(double[] initSeasonalEstimates, int frequency, HoltWintersSeasonalityType seasonalityType) { checkNotNull(initSeasonalEstimates); if (initSeasonalEstimates.length <= 0) return; checkLength(initSeasonalEstimates, frequency); checkSumOfEstimates(initSeasonalEstimates, frequency, seasonalityType); }  }
HoltWintersSeasonalEstimatesValidator { public void validate(double[] initSeasonalEstimates, int frequency, HoltWintersSeasonalityType seasonalityType) { checkNotNull(initSeasonalEstimates); if (initSeasonalEstimates.length <= 0) return; checkLength(initSeasonalEstimates, frequency); checkSumOfEstimates(initSeasonalEstimates, frequency, seasonalityType); }  void validate(double[] initSeasonalEstimates, int frequency, HoltWintersSeasonalityType seasonalityType); }
HoltWintersSeasonalEstimatesValidator { public void validate(double[] initSeasonalEstimates, int frequency, HoltWintersSeasonalityType seasonalityType) { checkNotNull(initSeasonalEstimates); if (initSeasonalEstimates.length <= 0) return; checkLength(initSeasonalEstimates, frequency); checkSumOfEstimates(initSeasonalEstimates, frequency, seasonalityType); }  void validate(double[] initSeasonalEstimates, int frequency, HoltWintersSeasonalityType seasonalityType);  }