X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=pkg%2FR%2FF_Average.R;h=7ec4e9005e3f2583ea837f181290624a18c34bc3;hb=98e958cab563866f8e00886b54336018a2e8bc97;hp=abc88be0db29e610e420e7e3a8d0b3a2751e728c;hpb=25b75559e2d9bf84e2de35b851d93fefdae36e17;p=talweg.git diff --git a/pkg/R/F_Average.R b/pkg/R/F_Average.R index abc88be..7ec4e90 100644 --- a/pkg/R/F_Average.R +++ b/pkg/R/F_Average.R @@ -5,10 +5,10 @@ #' Return the (pointwise) average of the all the (similar) centered day curves #' in the past. Inherits \code{\link{Forecaster}} AverageForecaster = R6::R6Class("AverageForecaster", - inherit = "Forecaster", + inherit = Forecaster, public = list( - predictShape = function(today, memory, horizon, ...) + predictShape = function(data, today, memory, horizon, ...) { avg = rep(0., horizon) first_day = max(1, today-memory)