21e6e006749cd623dbb8f824b3235aceb7fca2f5
[talweg.git] / pkg / R / F_Zero.R
1 #' Zero Forecaster
2 #'
3 #' Flat prediction: always forecast a serie of zeros (adjusted by 'pjump' function).
4 #'
5 #' @usage # ZeroForecaster$new(pjump)
6 #'
7 #' @docType class
8 #' @format R6 class, inherits Forecaster
9 #' @aliases F_Zero
10 #'
11 ZeroForecaster = R6::R6Class("ZeroForecaster",
12 inherit = Forecaster,
13
14 public = list(
15 predictShape = function(data, today, memory, predict_from, horizon, ...)
16 rep(0, (horizon-predict_from+1))
17 )
18 )