Commit | Line | Data |
---|---|---|
1 | #' Zero Forecaster | |
2 | #' | |
3 | #' Flat prediction of next series of 'horizon' values. | |
4 | #' | |
5 | #' @format R6 class, inherits Forecaster | |
6 | #' @alias F_Zero | |
7 | #' | |
8 | ZeroForecaster = R6::R6Class("ZeroForecaster", | |
9 | inherit = Forecaster, | |
10 | ||
11 | public = list( | |
12 | predictShape = function(data, today, memory, horizon, ...) | |
13 | rep(0, horizon) | |
14 | ) | |
15 | ) |