almost finished debug
[talweg.git] / pkg / R / computeForecast.R
index ec6fa07..f430190 100644 (file)
@@ -1,6 +1,6 @@
-#' @title get Forecast
+#' Compute forecast
 #'
-#' @description Predict time-series curves for the selected days indices (lines in data).
+#' Predict time-series curves for the selected days indices (lines in data).
 #'
 #' @param data Dataset, object of type \code{Data} output of \code{getData}
 #' @param indices Days indices where to forecast (the day after)
@@ -53,8 +53,8 @@ computeForecast = function(data, indices, forecaster, pjump,
 
        pred = Forecast$new( dates=sapply( indices, integerIndexToDate, data ) )
        forecaster_class_name = getFromNamespace(paste(forecaster,"Forecaster",sep=""), "talweg")
-       forecaster = forecaster_class_name$new(data=data,
-               pjump = getFromNamespace(paste("get",pjump,"JumpPredict",sep=""), "talweg"))
+       forecaster = forecaster_class_name$new(.data=data,
+               .pjump = getFromNamespace(paste("get",pjump,"JumpPredict",sep=""), "talweg"))
        for (today in integer_indices)
        {
                pred$append(