First commit
[talweg.git] / pkg / R / F_Zero.R
CommitLineData
3a38473a
BA
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#'
11ZeroForecaster = 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)