- exo_hat = as.data.frame( exo_df[i,(1+nb_exos+1):(1+2*nb_exos)] )
- level = mean(serie, na.rm=TRUE)
- centered_serie = serie - level
- data$append(time, centered_serie, level, exo, exo_hat)
+ data$appendHat(time, hat_serie, hat_exo)
+ data$append(serie, exo) #in realtime, this call comes hours later