egttools.plotting.helpers.check_if_point_in_unit_simplex

check_if_point_in_unit_simplex(point, delta=1e-12)[source]

Checks if a point (in barycentric coordinates) is inside the unit simplex.

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

  • delta (float) – Tolerance to consider a point outside the unit simplex.

Returns

Whether the point is inside the unit simplex.

Return type

bool