Sets the reference date on a forecast; ForecastBaselines.jl derives the target dates from it, the forecast's horizon and `resolution`.

add_temporal_info(forecast, reference_date, resolution = 1)

Arguments

forecast

A Forecast object

reference_date

Reference date (a `Date`, or an integer for position-based indexing)

resolution

Time resolution: a number of days when `reference_date` is a `Date`, otherwise an integer step (default: 1)

Value

Updated Forecast object