Class ConvexHull
- java.lang.Object
 - 
- elki.index.tree.metrical.mtreevariants.mktrees.mkcop.ConvexHull
 
 
- 
public class ConvexHull extends java.lang.ObjectHolds the lower and upper hull for some values.- Since:
 - 0.1
 - Author:
 - Elke Achtert
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ConvexHull(double[] x, double[] y)Creates a new convex hull for the specified distances. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getLowerHull()Returns the lower hull.intgetNumberOfPointsInLowerHull()Returns the number of points in lower hullintgetNumberOfPointsInUpperHull()Returns the number of points in upper hullint[]getUpperHull()Returns the upper hull. 
 - 
 
- 
- 
Constructor Detail
- 
ConvexHull
public ConvexHull(double[] x, double[] y)Creates a new convex hull for the specified distances.- Parameters:
 x- the x-values of the points for which the lower and upper hull should be computedy- the y-values of the points for which the lower and upper hull should be computed
 
 - 
 
- 
Method Detail
- 
getLowerHull
public int[] getLowerHull()
Returns the lower hull.- Returns:
 - the lower hull
 
 
- 
getUpperHull
public int[] getUpperHull()
Returns the upper hull.- Returns:
 - the upper hull
 
 
- 
getNumberOfPointsInLowerHull
public int getNumberOfPointsInLowerHull()
Returns the number of points in lower hull- Returns:
 - the number of points in lower hull
 
 
- 
getNumberOfPointsInUpperHull
public int getNumberOfPointsInUpperHull()
Returns the number of points in upper hull- Returns:
 - the number of points in upper hull
 
 
 - 
 
 -