Search in sources :

Example 1 with HoltWintersSettings

use of com.axibase.tsd.api.model.series.query.transformation.forecast.HoltWintersSettings in project atsd-api-test by axibase.

the class SeriesQueryForecastTimeFilterTest method buildForecastSettings.

private Forecast buildForecastSettings() {
    HoltWintersSettings hwSettings = new HoltWintersSettings().setAlpha(0.5).setBeta(0.5).setGamma(0.5).setAuto(false).setPeriod(new Period(1, TimeUnit.DAY));
    List<SeriesType> include = Arrays.asList(SeriesType.RECONSTRUCTED, SeriesType.FORECAST);
    return new Forecast().setHw(hwSettings).setInclude(include).setScoreInterval(new Interval(1, TimeUnit.DAY));
}
Also used : Forecast(com.axibase.tsd.api.model.series.query.transformation.forecast.Forecast) SeriesType(com.axibase.tsd.api.model.series.SeriesType) Period(com.axibase.tsd.api.model.Period) HoltWintersSettings(com.axibase.tsd.api.model.series.query.transformation.forecast.HoltWintersSettings) Interval(com.axibase.tsd.api.model.series.query.Interval)

Aggregations

Period (com.axibase.tsd.api.model.Period)1 SeriesType (com.axibase.tsd.api.model.series.SeriesType)1 Interval (com.axibase.tsd.api.model.series.query.Interval)1 Forecast (com.axibase.tsd.api.model.series.query.transformation.forecast.Forecast)1 HoltWintersSettings (com.axibase.tsd.api.model.series.query.transformation.forecast.HoltWintersSettings)1