projects
/
talweg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TODO: unit tests for simil days
[talweg.git]
/
pkg
/
R
/
F_Zero.R
diff --git
a/pkg/R/F_Zero.R
b/pkg/R/F_Zero.R
index
fdfee83
..
2c9a7b7
100644
(file)
--- a/
pkg/R/F_Zero.R
+++ b/
pkg/R/F_Zero.R
@@
-1,13
+1,17
@@
-#' @include Forecaster.R
-#'
#' Zero Forecaster
#'
#' Zero Forecaster
#'
-#' Return 0 (and then adjust). Inherits \code{\link{Forecaster}}
+#' Flat prediction: always forecast a serie of zeros.
+#' This serie is then adjusted using the ".pjump" function (see \code{Forecaster} class).
+#'
+#' @docType class
+#' @format R6 class, inherits Forecaster
+#' @aliases F_Zero
+#'
ZeroForecaster = R6::R6Class("ZeroForecaster",
inherit = Forecaster,
public = list(
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)
)
)
)
)