Unroll a stream-wise quantity back to the original time scale
Source:R/lag_handling.R
unroll_stream.RdAfter computing a per-stream cumulative quantity (e.g. e-process values),
restores them to the original length T by zero-padding the first
k - 1 positions, repeating each stream value h times, then truncating
to length T.
Alignment only, not theoretical updating
For lagged forecasts (h >= 2), the returned series is aligned to the
evaluated score-difference index after stream splitting. It should
not be interpreted as a process that updates at the original
forecast-issuance time. The unrolled process is for visualization and
alignment only; the theoretical validity argument relies strictly on the
streamwise sub-filtrations, not on this unrolled representation.
Examples
unroll_stream(c(1, 2, 3), k = 2, h = 2, T_ = 6)
#> [1] 0 1 1 2 2 3