dot-circular_block_permute: Circular block permutation indices

.circular_block_permuteR Documentation

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)

Arguments

idx

Integer vector of ordered indices.

block_len

Positive integer block length (>= 1).

Value

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


bioLeak documentation built on March 6, 2026, 1:06 a.m.