projects
/
talweg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new version, persistence -7 days
[talweg.git]
/
R
/
J_Persistence.R
diff --git
a/R/D_Persistence.R
b/R/J_Persistence.R
similarity index 75%
rename from
R/D_Persistence.R
rename to
R/J_Persistence.R
index
979bf05
..
744b42a
100644
(file)
--- a/
R/D_Persistence.R
+++ b/
R/J_Persistence.R
@@
-1,8
+1,8
@@
-#' Obtain
delta
forecast by the Persistence method
+#' Obtain
jump
forecast by the Persistence method
#'
#' @inheritParams getForecast
#'
#' @inheritParams getForecast
-#' @inheritParams getZero
DeltaForecas
t
-getPersistence
DeltaForecast = function(data, today, memory, horizon, shape_
params, ...)
+#' @inheritParams getZero
JumpPredic
t
+getPersistence
JumpPredict = 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)
{
#return gap between end of similar day curve and first day of tomorrow (in the past)
first_day = max(1, today-memory)