fix package
[talweg.git] / pkg / R / F_Zero.R
1 #' Zero Forecaster
2 #'
3 #' Flat prediction: always forecast a serie of zeros.
4 #' This serie is then adjusted using the ".pjump" function (see \code{Forecaster} class).
5 #'
6 #' @usage # ZeroForecaster$new(pjump)
7 #'
8 #' @docType class
9 #' @format R6 class, inherits Forecaster
10 #' @aliases F_Zero
11 #'
12 ZeroForecaster = R6::R6Class("ZeroForecaster",
13 inherit = Forecaster,
14
15 public = list(
16 predictShape = function(data, today, memory, horizon, ...)
17 rep(0, horizon)
18 )
19 )