equalize_telemetry_forecast_length: Equalize lengths of telemetry and forecast vectors

Description Usage Arguments Value

View source: R/ts_forecast.R

Description

Preprocess for metrics evaluations, for when telemetry is at finer time resolution than the forecast. The forecast and telemetry can be at different time resolutions, so long as telemetry is a multiple of the forecast.

Usage

1
2
equalize_telemetry_forecast_length(tel, fc, agg = TRUE,
  align = "end-of-hour")

Arguments

tel

A vector of the telemetry values OR a single value of the length of the telemetry values

fc

A vector of data from the time series forecast OR a single value of the length of the forecast values

agg

Boolean, TRUE to aggregate telemetry to forecast resolution, FALSE to expand forecast to telemetry resolution

align

Can be "end-of-hour", "half-hour " NaN first, telemetry lags Defaults to "end-of-hour". Currently half hour approaches expand forecast the same way.

Value

list of the telemetry and forecast data vectors, of equal length


kdayday/forecasting documentation built on Oct. 7, 2020, 7:16 p.m.