Top Description Methods
org.apache.commons.math3.geometry.hull

public Interface ConvexHullGenerator<S extends Space, P extends Point<S>>

Known Direct Subinterfaces
org.apache.commons.math3.geometry.euclidean.twod.hull.ConvexHullGenerator2D
Type Parameters
<S>
Type of the Space
<P>
Type of the Point
Imports
java.util.Collection, org.apache.commons.math3.exception.ConvergenceException, .NullArgumentException, org.apache.commons.math3.geometry.Point, .Space

Interface for convex hull generators.
Since
3.3
See Also
Convex Hull (Wikipedia), Convex Hull (MathWorld)

Method Summary

Modifier and TypeMethod and Description
public ConvexHull<S, P>

Returns:

the convex hull
generate
(Collection<P>
the set of input points
points
)

Builds the convex hull from the set of input points.

Method Detail

generateback to summary
public ConvexHull<S, P> generate(Collection<P> points) throws NullArgumentException, ConvergenceException

Builds the convex hull from the set of input points.

Parameters
points:Collection<P>

the set of input points

Returns:ConvexHull<S, P>

the convex hull

Exceptions
NullArgumentException:
if the input collection is null
ConvergenceException:
if generator fails to generate a convex hull for the given set of input points