X-Git-Url: https://git.auder.net/?p=talweg.git;a=blobdiff_plain;f=pkg%2FR%2FcomputeError.R;fp=pkg%2FR%2FgetError.R;h=af4109fcfd8f1bdac215dd6dc46cf473acfc6c74;hp=affe6c307b49ad84954990cd40fd02ddcec55cea;hb=99f83c9af27492f6fb9b10f51fb8704ed588f5c1;hpb=defcae035f2e26fd8568cedb27040b173811b246 diff --git a/pkg/R/getError.R b/pkg/R/computeError.R similarity index 90% rename from pkg/R/getError.R rename to pkg/R/computeError.R index affe6c3..af4109f 100644 --- a/pkg/R/getError.R +++ b/pkg/R/computeError.R @@ -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)