Commit | Line | Data |
---|---|---|
25b75559 | 1 | #' Zero Forecaster |
e030a6e3 | 2 | #' |
4f3fdbb8 | 3 | #' Flat prediction: always forecast a serie of zeros (adjusted by 'pjump' function). |
c4c329f6 | 4 | #' |
4e821712 | 5 | #' @usage # ZeroForecaster$new(pjump) |
689aa1d3 | 6 | #' |
102bcfda | 7 | #' @docType class |
c4c329f6 | 8 | #' @format R6 class, inherits Forecaster |
3ddf1c12 | 9 | #' @aliases F_Zero |
546b0cb6 | 10 | #' |
25b75559 | 11 | ZeroForecaster = R6::R6Class("ZeroForecaster", |
a66a84b5 | 12 | inherit = Forecaster, |
e030a6e3 | 13 | |
25b75559 | 14 | public = list( |
d2ab47a7 BA |
15 | predictShape = function(data, today, memory, predict_from, horizon, ...) |
16 | rep(0, (horizon-predict_from+1)) | |
e030a6e3 BA |
17 | ) |
18 | ) |