spatial_neighbours {erpR}R Documentation

calculate spatial neighbours.

Description

Internal function for mass.t.test, used in cluster based permutation to form clusters.

Usage

spatial_neighbours(chanlocs, max_dist, head_radius=NULL)

Arguments

chanlocs

channel locations

max_dist

maximum distance between electrodes to consider they are neighbours

head_radius

default is NULL

Details

This is an R translation of spatial_neighbours.m function in MASS univariate toolbox

Value

An electrodes by electrodes matrix with channel neighbours (1 = neighbouring, 0 = not neighouring).

Author(s)

Giorgio Arcara

Examples

  
# NO EXAMPLES
  
  

[Package erpR version 0.4.1 Index]