dreye.proj_P_for_hull#

dreye.proj_P_for_hull(P, hull_class=<class 'scipy.spatial._qhull.ConvexHull'>, return_ndim=False, return_hull=True, return_transformer=False)[source]#

This function projects the input array P until it defines a convex hull.

Parameters:
Pnp.ndarray

The input array to be projected.

hull_classUnion[ConvexHull, Delaunay], optional

The convex hull class to use. Default is ConvexHull.

return_ndimbool, optional

If True, the function returns the number of dimensions. Default is False.

return_hullbool, optional

If True, the function returns the convex hull object. Default is True.

return_transformerbool, optional

If True, the function returns the dimensionality reduction transformer. Default is False.

Returns:
ConvexHull or int or PCA or Tuple[ConvexHull, int] or Tuple[ConvexHull, PCA] or Tuple[ConvexHull, int, PCA]

Depending on the values of return_ndim, return_hull, and return_transformer, the function will return the convex hull object, the number of dimensions, the dimensionality reduction transformer, or some combination of these.

Raises:
QhullError

If QhullError is encountered during the creation of the convex hull.