surrogdistrib#

surrogdistrib(data, *, method='perm', pairing='on', naccu=1, axis=-1, rng=None)#

Build bootstrap or permutation surrogate condition grids.

Parameters:
  • data (Any) – One- or two-dimensional sequence of condition arrays.

  • method (str) – "perm"/"permutation" or "bootstrap".

  • pairing (str) – "on" to preserve case identity across conditions or "off" to resample from the pooled case axis.

  • naccu (int) – Number of surrogate grids to generate.

  • axis (int) – Axis in each condition array that stores cases.

  • rng (Generator | int | None) – Optional NumPy generator or seed for deterministic resampling.

Return type:

SurrogateDistribution