Checking if a point is in ConvexHull?
问题 I am having trouble understanding how to compute whether an n-dimensional point is within an n-dimensional ConvexHull. A very similar question (the same) was asked here: What's an efficient way to find if a point lies in the convex hull of a point cloud? However, the answers are confusing me or don't seem to work for me, and I have no idea why. def in_hull(p, hull): """ Copied and from the Top Original answer """ from scipy.spatial import Delaunay if not isinstance(hull,Delaunay): hull =