% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lag_handling.R
\name{split_streams}
\alias{split_streams}
\title{Split a sequence into h interleaved lag streams}
\usage{
split_streams(xs, h)
}
\arguments{
\item{xs}{Numeric vector. Score differences hat_delta_t.}

\item{h}{Integer >= 1. Lag (number of steps ahead).}
}
\value{
List of length h. Each element is a numeric vector
containing the score differences for that stream.
}
\description{
For lag \code{h}, the k-th stream (\verb{k = 1, ..., h}) contains indices
\eqn{\{k,\, k+h,\, k+2h,\, \ldots\}}, following the CR23 convention.
}
\examples{
  split_streams(1:10, h = 3)
  # stream 1: indices 1, 4, 7, 10
  # stream 2: indices 2, 5, 8
  # stream 3: indices 3, 6, 9

}
