powered by
This does the preprocessing steps that all the agg methods have in common.
preprocess(x, q = 0)
A vector of forecasts with 0s are replaced by the qth quantile and 100s are replaced by the (1 - q)th quantile.
A vector of forecasts
The quantile to use for replacing 0s and 1s (between 0 and 1)