screamer.js
    Preparing search index...

    Function circularShift

    • n circularly shifted copies of a series, as a (T, n) array.

      Each column is x rotated by a random offset in [minShift, L - minShift], where L is the length after the leading NaN warmup, which stays in place. A rotation keeps every property of the series and changes only its alignment in time. Without minShift, twice the mean run length is used, capped at a quarter of L.

      Parameters

      • x: ArrayLike<number>
      • n: number
      • opts: { minShift?: number; seed?: number } = {}

      Returns NdArray