Generates spatially-constrained surrogate brain maps using Moran's eigenvector maps (MEMs) for spectral randomization.
Arguments
- data
Numeric vector of brain map values.
- distmat
Distance matrix between parcels/vertices.
- n_perm
Integer number of null permutations to generate.
- seed
Optional integer seed for reproducibility.
- procedure
Character, either
"pair"(default, random 2D rotations of near-degenerate eigenvector pairs, matches neuromaps Python) or"singleton"(random sign flips of individual eigenvectors).- kernel
Weight matrix kernel:
"inverse_distance"(default, matches neuromaps Python),"exponential","gaussian", or"bisquare".- tol
Numeric tolerance for eigenvalue comparison.
Value
A null_distribution object.