Generate spatially-constrained null distributions using spin-based permutation of spherical coordinates.
Arguments
- data
Numeric vector of brain map values.
- coords
List with
$lhand$rhmatrices of spherical coordinates (n x 3 each).- n_perm
Integer number of null permutations to generate.
- seed
Optional integer seed for reproducibility.
- rotation
Rotation generation method:
"euler"(ZYZ Euler angles, default, matches neuromaps Python) or"rodrigues"(Rodrigues axis-angle formula).
Value
A null_distribution object.