new version, persistence -7 days
[talweg.git] / R / J_Persistence.R
similarity index 75%
rename from R/D_Persistence.R
rename to R/J_Persistence.R
index 979bf05..744b42a 100644 (file)
@@ -1,8 +1,8 @@
-#' Obtain delta forecast by the Persistence method
+#' Obtain jump forecast by the Persistence method
 #'
 #' @inheritParams getForecast
-#' @inheritParams getZeroDeltaForecast
-getPersistenceDeltaForecast = function(data, today, memory, horizon, shape_params, ...)
+#' @inheritParams getZeroJumpPredict
+getPersistenceJumpPredict = function(data, today, memory, horizon, params, ...)
 {
        #return gap between end of similar day curve and first day of tomorrow (in the past)
        first_day = max(1, today-memory)