point_in_simplex_nd

point_in_simplex_nd#

autoplex.fitting.common.regularization.point_in_simplex_nd(pn, *preg)[source]#

Check if a point is inside a region of hyperplanes in N dimensions.

Make a little convex hull in N-1 D and check this.

Parameters:
  • pn – Point to check (in ND)

  • *preg – A list of points defining an (N-1)D simplex.

Return type:

bool