-##TODO: fix note comment ! --> triche: exo contient les mesures du jour, pas forcément toutes available
- # NOTE: if predict_at does not cut days at midnight,
- # for the exogenous to be synchronized they need to be shifted
- if (predict_at > 0)
- {
- exo_hat = as.data.frame(exo_df[max(1,i-1),(1+nb_exos+1):(1+2*nb_exos)])
- exo = as.data.frame(exo_df[max(1,i-1),2:(1+nb_exos)])
- }
- else
- {
- exo_hat = as.data.frame(exo_df[i,(1+nb_exos+1):(1+2*nb_exos)])
- exo = as.data.frame(exo_df[i,2:(1+nb_exos)])
- }
+ data$append(time=time, value=serie, level_hat=level_hat,
+ exo=exo_df[i,2:(1+nb_exos)], exo_hat=exo_df[i,(1+nb_exos+1):(1+2*nb_exos)])
+ if (i >= limit)
+ break