egttools.plotting.helpers.find_where_point_is_in_simplex

find_where_point_is_in_simplex(point)[source]

Finds in which part of the 2D simplex the point is.

This function will return: 0 -> if the point is a vertex 1 -> if the point in an edge 2 -> if the point is in the interior of the simplex

Parameters

point (numpy.ndarray) – The barycentric coordinates of the point

Returns

An integer which indicates where the point is in the simplex and the index of the non-zero entries.

Return type

Tuple[int, numpy.ndarray]