reorganize folder
[talweg.git] / pkg / R / F_Zero.R
diff --git a/pkg/R/F_Zero.R b/pkg/R/F_Zero.R
new file mode 100644 (file)
index 0000000..247ab04
--- /dev/null
@@ -0,0 +1,20 @@
+#' @include Forecaster.R
+#'
+#' @title Zero Forecaster
+#'
+#' @description Return 0 (and then adjust). Inherits \code{\link{Forecaster}}
+ZeroForecaster = setRefClass(
+       Class = "ZeroForecaster",
+       contains = "Forecaster",
+
+       methods = list(
+               initialize = function(...)
+               {
+                       callSuper(...)
+               },
+               predictShape = function(today, memory, horizon, ...)
+               {
+                       rep(0., horizon)
+               }
+       )
+)