X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=pkg%2FR%2FF_Zero.R;h=3c46f2c6959bbcced5bd8e62863242a393415d23;hb=c4c329f65e6e842917cdfbabff36fbca6a617d02;hp=f5d6b89054ddd4dbe60e08467e757fea757f79c2;hpb=546b0cb65870355a2a2c3705c91418570499d3a6;p=talweg.git diff --git a/pkg/R/F_Zero.R b/pkg/R/F_Zero.R index f5d6b89..3c46f2c 100644 --- a/pkg/R/F_Zero.R +++ b/pkg/R/F_Zero.R @@ -1,14 +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, public = list( predictShape = function(data, today, memory, horizon, ...) - rep(0., horizon) + rep(0, horizon) ) )