Draw i.i.d. innovations from a Normal distribution with zero mean
Source:R/draw_innovations.R
draw_normal_with_zero_mean.Rd
Draw i.i.d. innovations from a Normal distribution with zero mean
Arguments
- n
The number of innovations to draw
- errors
The residual errors that are used to define the distribution from which the innovations are drawn
- ...
Additional arguments passed from
predict.threedx()
, ignored
Examples
model <- learn_weights(
y = 1:50,
period_length = 12L,
alphas_grid = list_sampled_alphas(n_target = 25),
loss_function = loss_mae
)
forecast <- predict(
object = model,
horizon = 12L,
n_samples = 1000L,
observation_driven = FALSE,
innovation_function = draw_normal_with_zero_mean,
)