new version, persistence -7 days
[talweg.git] / R / getError.R
index 61e7910..affe6c3 100644 (file)
@@ -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)