X-Git-Url: https://git.auder.net/?p=talweg.git;a=blobdiff_plain;f=pkg%2FR%2FJ_Persistence.R;h=37d05fe7968c845ae0362ab8553a838826c956c0;hp=a85a42a88ce76089d78491eae45c2d42d9ea6e25;hb=102bcfda4afbb5cfee885cbee0f55545624168fd;hpb=c4c329f65e6e842917cdfbabff36fbca6a617d02 diff --git a/pkg/R/J_Persistence.R b/pkg/R/J_Persistence.R index a85a42a..37d05fe 100644 --- a/pkg/R/J_Persistence.R +++ b/pkg/R/J_Persistence.R @@ -1,8 +1,15 @@ -#' Obtain jump forecast by the Persistence method +#' getPersistenceJumpPredict +#' +#' Analog of the PersistenceForecaster: predict the jump after last observed value either +#' by re-applying the last jump between similar day and its follower (if argument +#' "same_day" is TRUE), or by re-using the very last observed jump (when "same_day" = +#' FALSE). #' #' @inheritParams computeForecast #' @inheritParams getZeroJumpPredict #' +#' @alias J_Persistence +#' getPersistenceJumpPredict = function(data, today, memory, horizon, params, ...) { #return gap between end of similar day curve and first day of tomorrow (in the past)