egttools.analytical.utils.check_if_point_in_unit_simplex

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

Check whether a point (in barycentric coordinates) lies inside the unit simplex.

A point is considered inside the simplex if the sum of its coordinates is approximately 1 and each coordinate is between 0 and 1 within a specified tolerance.

Parameters:
  • point (ndarray of shape (n,)) – Barycentric coordinates of the point (i.e., a probability distribution over n strategies).

  • delta (float, optional) – Tolerance used to determine if the point lies within bounds [0 - delta, 1 + delta]. Default is 1e-12.

Returns:

True if the point is inside the unit simplex, False otherwise.

Return type:

bool