1 #' @title Shape Forecaster
3 #' @description Generic class to represent a shape forecaster
5 #' @field params List of computed parameters, potentially useful for some DeltaForecasters
6 #' @field data Dataset, object of class Data
7 ShapeForecaster = setRefClass(
8 Class = "ShapeForecaster",
16 initialize = function(...)
18 "Initialize (generic) ShapeForecaster object"
22 stop("ShapeForecaster must be initialized with a Data object")
25 predict = function(today, memory, horizon, ...)
27 "Obtain a new forecasted time-serie (+ side-effect: compute parameters)"
29 #empty default implementation: to implement in inherited classes
31 getParameters = function()