sesameeg.utils.compute_neighbours_probability_matrix

sesameeg.utils.compute_neighbours_probability_matrix(n_matrix, src, d_matrix, sigma_neigh)[source]

Compute neighbours’ probability matrix.

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

The sets of neighbours.

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.

sigma_neighfloat

The standard deviation of the Gaussian distribution that defines the neighbours’ probability.

Returns:
np_matrixndarray of float, shape (n_verts, n_neigh_max)

The neighbours’ probability.