Learn R Programming

bioLeak (version 0.2.0)

.circular_block_permute: Circular block permutation indices

Description

Generates a permutation of time indices by concatenating random-length blocks sampled circularly from the ordered sequence. Used for creating block-permuted surrogates that preserve short-range temporal structure.

Usage

.circular_block_permute(idx, block_len)

Value

Integer vector of permuted indices of the same length as `idx`.

Arguments

idx

Integer vector of ordered indices.

block_len

Positive integer block length (>= 1).