spatial_neighbours {erpR} | R Documentation |
Internal function for mass.t.test
, used in cluster based permutation to form clusters.
spatial_neighbours(chanlocs, max_dist, head_radius=NULL)
chanlocs |
channel locations |
max_dist |
maximum distance between electrodes to consider they are neighbours |
head_radius |
default is NULL |
This is an R translation of spatial_neighbours.m function in MASS univariate toolbox
An electrodes by electrodes matrix with channel neighbours (1 = neighbouring, 0 = not neighouring).
Giorgio Arcara
# NO EXAMPLES