TripleExponentialSmoothing extends AbstractExponentialSmoothing { public static TripleExponentialSmoothing createDefault(int periods) { return new TripleExponentialSmoothing(periods, DEFAULT_LEVEL_SMOOTHING, DEFAULT_TREND_SMOOTHING, DEFAULT_SEASONAL_SMOOTHING, ImmutableMetricContext.getDefault()); } private  TripleExponentialSmoothing(int periods, double levelSmoothing, double trendSmoothing,
                                      double seasonalSmoothing, MetricContext metricContext); static TripleExponentialSmoothing createDefault(int periods); static TripleExponentialSmoothing createWithMetric(int periods, MetricContext metricContext); static TripleExponentialSmoothing createWithSmoothingParams(int periods, double levelSmoothing,
                                                                       double trendSmoothing,
                                                                       double seasonalSmoothing); static TripleExponentialSmoothing createCustom(int periods, double levelSmoothing,
                                                          double trendSmoothing,
                                                          double seasonalSmoothing,
                                                          MetricContext metricContext); static TripleExponentialSmoothing createWithState(TripleExState state, double levelSmoothing, double trendSmoothing,
                                                             double seasonalSmoothing, MetricContext metricContext); @Override String name(); @Override int numberOfParams(); @Override int minimumInitSize(); static TripleExState initState(List<DataPoint> dataPoints, int periods, MetricContext metricContext); @Override String toString(); static TripleExOptimizer optimizer(int periods); static TripleExOptimizer optimizer(MetricContext metricContext); static TripleExOptimizer optimizer(int periods, MetricContext metricContext); static final double DEFAULT_LEVEL_SMOOTHING; static final double DEFAULT_TREND_SMOOTHING; static final double DEFAULT_SEASONAL_SMOOTHING; static final double MIN_LEVEL_SMOOTHING; static final double MIN_TREND_SMOOTHING; static final double MIN_SEASONAL_SMOOTHING; static final double MAX_LEVEL_SMOOTHING; static final double MAX_TREND_SMOOTHING; static final double MAX_SEASONAL_SMOOTHING; }
@Test public void testInit() throws IOException { ModelData rModel = ModelReader.read("sineLowVarMedium"); TripleExponentialSmoothing tripleExponentialSmoothing = TripleExponentialSmoothing.createDefault(rModel.getPeriods()); AccuracyStatistics initStat = tripleExponentialSmoothing.init(rModel.getData()); Assert.assertNotNull(initStat); }