projects
/
talweg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of auder.net:talweg
[talweg.git]
/
pkg
/
R
/
F_Zero.R
diff --git
a/pkg/R/F_Zero.R
b/pkg/R/F_Zero.R
index
3c46f2c
..
4e1ae11
100644
(file)
--- a/
pkg/R/F_Zero.R
+++ b/
pkg/R/F_Zero.R
@@
-1,15
+1,19
@@
#' Zero Forecaster
#'
#' Zero Forecaster
#'
-#' Flat prediction of next series of 'horizon' values.
+#' Flat prediction: always forecast a serie of zeros.
+#' This serie is then adjusted using the ".pjump" function (see \code{Forecaster} class).
#'
#'
+#' @usage # ZeroForecaster$new(pjump)
+#'
+#' @docType class
#' @format R6 class, inherits Forecaster
#' @format R6 class, inherits Forecaster
-#' @alias F_Zero
+#' @alias
es
F_Zero
#'
ZeroForecaster = R6::R6Class("ZeroForecaster",
inherit = Forecaster,
public = list(
#'
ZeroForecaster = R6::R6Class("ZeroForecaster",
inherit = Forecaster,
public = list(
- predictShape = function(data, today, memory, horizon, ...)
- rep(0,
horizon
)
+ predictShape = function(data, today, memory,
predict_from,
horizon, ...)
+ rep(0,
(horizon-predict_from+1)
)
)
)
)
)