new version, persistence -7 days
[talweg.git] / R / ShapeForecaster.R
diff --git a/R/ShapeForecaster.R b/R/ShapeForecaster.R
deleted file mode 100644 (file)
index 0b448d7..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-#' @title Shape Forecaster
-#'
-#' @description Generic class to represent a shape forecaster
-#'
-#' @field params List of computed parameters, potentially useful for some DeltaForecasters
-#' @field data Dataset, object of class Data
-ShapeForecaster = setRefClass(
-       Class = "ShapeForecaster",
-
-       fields = list(
-               params = "list",
-               data = "Data"
-       ),
-
-       methods = list(
-               initialize = function(...)
-               {
-                       "Initialize (generic) ShapeForecaster object"
-
-                       callSuper(...)
-                       if (!hasArg(data))
-                               stop("ShapeForecaster must be initialized with a Data object")
-                       params <<- list()
-               },
-               predict = function(today, memory, horizon, ...)
-               {
-                       "Obtain a new forecasted time-serie (+ side-effect: compute parameters)"
-
-                       #empty default implementation: to implement in inherited classes
-               },
-               getParameters = function()
-               {
-                       params
-               }
-       )
-)
-