after merg
[talweg.git] / pkg / R / F_Zero.R
index 56bb4a5..21e6e00 100644 (file)
@@ -1,7 +1,6 @@
 #' Zero Forecaster
 #'
-#' Flat prediction: always forecast a serie of zeros.
-#' This serie is then adjusted using the ".pjump" function (see \code{Forecaster} class).
+#' Flat prediction: always forecast a serie of zeros (adjusted by 'pjump' function).
 #'
 #' @usage # ZeroForecaster$new(pjump)
 #'
@@ -13,7 +12,7 @@ ZeroForecaster = R6::R6Class("ZeroForecaster",
        inherit = Forecaster,
 
        public = list(
-               predictShape = function(data, today, memory, horizon, ...)
-                       rep(0, horizon)
+               predictShape = function(data, today, memory, predict_from, horizon, ...)
+                       rep(0, (horizon-predict_from+1))
        )
 )