Commit | Line | Data |
---|---|---|
25b75559 | 1 | #' Zero Forecaster |
e030a6e3 | 2 | #' |
102bcfda BA |
3 | #' Flat prediction: always forecast a serie of zeros. |
4 | #' This serie is then adjusted using the ".pjump" function (see \code{Forecaster} class). | |
c4c329f6 | 5 | #' |
102bcfda | 6 | #' @docType class |
c4c329f6 BA |
7 | #' @format R6 class, inherits Forecaster |
8 | #' @alias F_Zero | |
546b0cb6 | 9 | #' |
25b75559 | 10 | ZeroForecaster = R6::R6Class("ZeroForecaster", |
a66a84b5 | 11 | inherit = Forecaster, |
e030a6e3 | 12 | |
25b75559 | 13 | public = list( |
98e958ca | 14 | predictShape = function(data, today, memory, horizon, ...) |
2057c793 | 15 | rep(0, horizon) |
e030a6e3 BA |
16 | ) |
17 | ) |