sesameeg.utils.compute_neighbours_matrix

sesameeg.utils.compute_neighbours_matrix(src, d_matrix, radius, n_simil)[source]

Compute the set of neighbours of each point in the brain discretization.

Parameters:
srcndarray of float, shape (n_verts, 3)

The coordinates of the points in the brain discretization.

d_matrixndarray of float, shape (n_verts x n_verts)

The Euclidean distance between the points in the brain discretization.

radiusfloat

The maximum distance between two neighbouring points.

Returns:
n_matrixndarray of int, shape (n_verts, n_neigh_max)

The sets of neighbours.