various fixes (especially in plotFbox and Neighbors shape predict
[talweg.git] / pkg / R / computeError.R
similarity index 90%
rename from pkg/R/getError.R
rename to pkg/R/computeError.R
index affe6c3..af4109f 100644 (file)
@@ -3,13 +3,13 @@
 #' @description Obtain the errors between forecast and data
 #'
 #' @param data Dataset, object of class \code{Data} output of \code{getData}
-#' @param forecast Forecast object, class \code{Forecast} output of \code{getForecast}
-#' @param horizon Horizon where to compute the error (<= horizon used in \code{getForecast})
+#' @param forecast Forecast object, class \code{Forecast} output of \code{computeForecast}
+#' @param horizon Horizon where to compute the error (<= horizon used in \code{computeForecast})
 #'
 #' @return A list (abs,MAPE) of lists (day,indices)
 #'
 #' @export
-getError = function(data, forecast, horizon=data$getStdHorizon())
+computeError = function(data, forecast, horizon=data$getStdHorizon())
 {
        L = forecast$getSize()
        mape_day = rep(0, horizon)