screamer.js
    Preparing search index...

    Function segmentShuffle

    • n copies of a series with its runs in random order, as a (T, n) array.

      Every copy holds exactly the same runs (trades and flat stretches) with the same values and lengths, at random times. No two neighbouring runs have the same value, so no two runs merge and every copy changes position as often as the original. The NaN warmup stays in place.

      Parameters

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

      Returns NdArray