@Test(expected = IllegalArgumentException.class) public void testForecast_nullMetricData() { val forecaster = new EwmaPointForecaster(); forecaster.forecast(null); }
@Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val observed = metricData.getValue(); updateMeanEstimate(observed); return new PointForecast(mean, false); }
EwmaPointForecaster implements PointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val observed = metricData.getValue(); updateMeanEstimate(observed); return new PointForecast(mean, false); } }
EwmaPointForecaster implements PointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val observed = metricData.getValue(); updateMeanEstimate(observed); return new PointForecast(mean, false); } EwmaPointForecaster();  EwmaPointForecaster(EwmaPointForecasterParams params); }
EwmaPointForecaster implements PointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val observed = metricData.getValue(); updateMeanEstimate(observed); return new PointForecast(mean, false); } EwmaPointForecaster();  EwmaPointForecaster(EwmaPointForecasterParams params); @Override PointForecast forecast(MetricData metricData); }
EwmaPointForecaster implements PointForecaster { @Override public PointForecast forecast(MetricData metricData) { notNull(metricData, "metricData can't be null"); val observed = metricData.getValue(); updateMeanEstimate(observed); return new PointForecast(mean, false); } EwmaPointForecaster();  EwmaPointForecaster(EwmaPointForecasterParams params); @Override PointForecast forecast(MetricData metricData);  }