projects
/
talweg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
on the way back without realtime
[talweg.git]
/
pkg
/
R
/
F_Zero.R
diff --git
a/pkg/R/F_Zero.R
b/pkg/R/F_Zero.R
index
247ab04
..
ac970c4
100644
(file)
--- a/
pkg/R/F_Zero.R
+++ b/
pkg/R/F_Zero.R
@@
-1,20
+1,12
@@
-#'
@include Forecaster.R
+#'
Zero Forecaster
#'
#'
-#'
@title Zero Forecaster
+#'
Return 0 (and then adjust). Inherits \code{\link{Forecaster}}
#'
#'
-#' @description Return 0 (and then adjust). Inherits \code{\link{Forecaster}}
-ZeroForecaster = setRefClass(
- Class = "ZeroForecaster",
- contains = "Forecaster",
+ZeroForecaster = R6::R6Class("ZeroForecaster",
+ inherit = Forecaster,
- methods = list(
- initialize = function(...)
- {
- callSuper(...)
- },
- predictShape = function(today, memory, horizon, ...)
- {
- rep(0., horizon)
- }
+ public = list(
+ predictShape = function(data, today, memory, horizon, ...)
+ rep(0, horizon)
)
)
)
)