public class ConvexHullClusterShapeGenerator extends java.lang.Object implements ClusterShapeGenerator
Constructor and Description |
---|
ConvexHullClusterShapeGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
addMemberPoint(double[] point)
Adds the point of a cluster member.
|
void |
clear()
Clears the current status.
|
JGeometry |
generateShape()
Generates the current cluster shape.
|
void |
setClusterCenter(double[] point)
Sets the center point of the current cluster
|
void |
setup(Configuration conf)
Perform initialization tasks.
|
public void addMemberPoint(double[] point)
ClusterShapeGenerator
addMemberPoint
in interface ClusterShapeGenerator
point
- point ordinatespublic void clear()
ClusterShapeGenerator
clear
in interface ClusterShapeGenerator
public JGeometry generateShape()
ClusterShapeGenerator
generateShape
in interface ClusterShapeGenerator
public void setClusterCenter(double[] point)
ClusterShapeGenerator
setClusterCenter
in interface ClusterShapeGenerator
point
- point ordinatespublic void setup(Configuration conf)
ClusterShapeGenerator
setup
in interface ClusterShapeGenerator
conf
- the job configurationCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.