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 | #' |
689aa1d3 BA |
6 | #' @usage f <- ZeroForecaster$new(pjump) |
7 | #' | |
102bcfda | 8 | #' @docType class |
c4c329f6 | 9 | #' @format R6 class, inherits Forecaster |
3ddf1c12 | 10 | #' @aliases F_Zero |
546b0cb6 | 11 | #' |
25b75559 | 12 | ZeroForecaster = R6::R6Class("ZeroForecaster", |
a66a84b5 | 13 | inherit = Forecaster, |
e030a6e3 | 14 | |
25b75559 | 15 | public = list( |
98e958ca | 16 | predictShape = function(data, today, memory, horizon, ...) |
2057c793 | 17 | rep(0, horizon) |
e030a6e3 BA |
18 | ) |
19 | ) |