X-Git-Url: https://git.auder.net/?p=talweg.git;a=blobdiff_plain;f=R%2FgetError.R;h=affe6c307b49ad84954990cd40fd02ddcec55cea;hp=61e7910d3ac08288ab481e4761e180086d4a3b0b;hb=e030a6e31232332b73187eda25870e843152c174;hpb=31f7d913d4a99d0a4db9bcfe40e31cebf90b22e6 diff --git a/R/getError.R b/R/getError.R index 61e7910..affe6c3 100644 --- a/R/getError.R +++ b/R/getError.R @@ -9,7 +9,7 @@ #' @return A list (abs,MAPE) of lists (day,indices) #' #' @export -getError = function(data, forecast, horizon) +getError = function(data, forecast, horizon=data$getStdHorizon()) { L = forecast$getSize() mape_day = rep(0, horizon)