projects
/
talweg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
work on doc
[talweg.git]
/
pkg
/
R
/
F_Zero.R
diff --git
a/pkg/R/F_Zero.R
b/pkg/R/F_Zero.R
index
ff6eb52
..
3c46f2c
100644
(file)
--- a/
pkg/R/F_Zero.R
+++ b/
pkg/R/F_Zero.R
@@
-1,13
+1,15
@@
-#' @include Forecaster.R
-#'
#' Zero Forecaster
#'
#' Zero Forecaster
#'
-#' Return 0 (and then adjust). Inherits \code{\link{Forecaster}}
+#' Flat prediction of next series of 'horizon' values.
+#'
+#' @format R6 class, inherits Forecaster
+#' @alias F_Zero
+#'
ZeroForecaster = R6::R6Class("ZeroForecaster",
ZeroForecaster = R6::R6Class("ZeroForecaster",
- inherit =
"Forecaster"
,
+ inherit =
Forecaster
,
public = list(
public = list(
- predictShape = function(today, memory, horizon, ...)
- rep(0
.
, horizon)
+ predictShape = function(
data,
today, memory, horizon, ...)
+ rep(0, horizon)
)
)
)
)