magnet.geometric_utils.tetrahedron_center#
- magnet.geometric_utils.tetrahedron_center(vertices: ndarray) ndarray #
Compute the baricenter of a simplex.
Takes the mean of the coordinates of the vertices.
- Parameters:
vertices (np.ndarray of float) – Array of shape (dim + 1, dim), where dim is the dimension of the considered space, containing the coordinates of the vertices of the simplex.
- Returns:
The coordinates of the baricenter.
- Return type:
np.ndarray of float