X-Git-Url: https://git.auder.net/variants/Dynamo/style.css?a=blobdiff_plain;f=pkg%2FR%2FF_Zero.R;h=3c46f2c6959bbcced5bd8e62863242a393415d23;hb=c4c329f65e6e842917cdfbabff36fbca6a617d02;hp=fdfee838f13159b2a4a9aa25c28cce06d1900a7d;hpb=a66a84b56467194852f2faee15f4725759b24158;p=talweg.git diff --git a/pkg/R/F_Zero.R b/pkg/R/F_Zero.R index fdfee83..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, public = list( - predictShape = function(today, memory, horizon, ...) - rep(0., horizon) + predictShape = function(data, today, memory, horizon, ...) + rep(0, horizon) ) )