-#' @field params List of computed parameters, for post-run analysis (dev)
-#' @field data Dataset, object of class Data
-#' @field pjump Function: how to predict the jump at day interface ?
-Forecaster = setRefClass(
- Class = "Forecaster",
-
- fields = list(
- params = "list",
- data = "Data",
- pjump = "function"
+#' @docType class
+#' @importFrom R6 R6Class
+#'
+#' @field .params List of computed parameters, for post-run analysis (dev)
+#' @field .pjump Function: how to predict the jump at day interface ?
+#'
+#' @section Methods:
+#' \describe{
+#' \item{\code{initialize(data, pjump)}}{
+#' Initialize a Forecaster object with a Data object and a jump prediction function.}
+#' \item{\code{predictSerie(today,memory,horizon,...)}}{
+#' Predict a new serie of \code{horizon} values at day index \code{today}
+#' using \code{memory} days in the past.}
+#' \item{\code{predictShape(today,memory,horizon,...)}}{
+#' Predict a new shape of \code{horizon} values at day index \code{today}
+#' using \code{memory} days in the past.}
+#' \item{\code{getParameters()}}{
+#' Return (internal) parameters.}}
+Forecaster = R6::R6Class("Forecaster",
+ private = list(
+ .params = list(),
+ .pjump = NULL