new version, persistence -7 days
[talweg.git] / R / F_Zero.R
1 #' @include Forecaster.R
2 #'
3 #' @title Zero Forecaster
4 #'
5 #' @description Return 0 (and then adjust). Inherits \code{\link{Forecaster}}
6 ZeroForecaster = setRefClass(
7 Class = "ZeroForecaster",
8 contains = "Forecaster",
9
10 methods = list(
11 initialize = function(...)
12 {
13 callSuper(...)
14 },
15 predictShape = function(today, memory, horizon, ...)
16 {
17 rep(0., horizon)
18 }
19 )
20 )