revise package structure: always predict from 1am to horizon, dataset not cut at...
[talweg.git] / pkg / R / F_Zero.R
CommitLineData
25b75559 1#' Zero Forecaster
e030a6e3 2#'
102bcfda
BA
3#' Flat prediction: always forecast a serie of zeros.
4#' This serie is then adjusted using the ".pjump" function (see \code{Forecaster} class).
c4c329f6 5#'
4e821712 6#' @usage # ZeroForecaster$new(pjump)
689aa1d3 7#'
102bcfda 8#' @docType class
c4c329f6 9#' @format R6 class, inherits Forecaster
3ddf1c12 10#' @aliases F_Zero
546b0cb6 11#'
25b75559 12ZeroForecaster = R6::R6Class("ZeroForecaster",
a66a84b5 13 inherit = Forecaster,
e030a6e3 14
25b75559 15 public = list(
d2ab47a7
BA
16 predictShape = function(data, today, memory, predict_from, horizon, ...)
17 rep(0, (horizon-predict_from+1))
e030a6e3
BA
18 )
19)