X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=pkg%2FR%2FF_Zero.R;h=3c46f2c6959bbcced5bd8e62863242a393415d23;hb=c4c329f65e6e842917cdfbabff36fbca6a617d02;hp=ff6eb52aa5bcf74b87c2a8291eacd066cff1b30c;hpb=25b75559e2d9bf84e2de35b851d93fefdae36e17;p=talweg.git diff --git a/pkg/R/F_Zero.R b/pkg/R/F_Zero.R index ff6eb52..3c46f2c 100644 --- a/pkg/R/F_Zero.R +++ b/pkg/R/F_Zero.R @@ -1,13 +1,15 @@ -#' @include Forecaster.R -#' #' Zero Forecaster #' -#' Return 0 (and then adjust). Inherits \code{\link{Forecaster}} +#' Flat prediction of next series of 'horizon' values. +#' +#' @format R6 class, inherits Forecaster +#' @alias F_Zero +#' ZeroForecaster = R6::R6Class("ZeroForecaster", - inherit = "Forecaster", + inherit = Forecaster, public = list( - predictShape = function(today, memory, horizon, ...) - rep(0., horizon) + predictShape = function(data, today, memory, horizon, ...) + rep(0, horizon) ) )