public interface CriterionFunction
| Modifier and Type | Method and Description |
|---|---|
void |
addClusterMember(RecordInfo member, double[] memberPoint)
Adds the data and point of an individual cluster member.
|
void |
beforeClusterCenterUpdated(int clusterId, double[] clusterCenter, double critFunValue, long memberCount)
Sets the current cluster and its state before the cluster point is updated.
|
void |
clusterCenterUpdated(double[] clusterCenter)
Sets the updated cluster center point
|
double |
getCriterionFunctionValue()
Gets the new criterion function value calculated using the updated cluster center point
|
boolean |
isClusterConverging()
Tell whether the criterion function is converging for the current cluster
|
void |
setup(Configuration conf)
Perform initialization tasks.
|
void addClusterMember(RecordInfo member, double[] memberPoint)
member - a cluster member as a RecordInfo instancememberPoint - a cluster member point
void beforeClusterCenterUpdated(int clusterId,
double[] clusterCenter,
double critFunValue,
long memberCount)
clusterId - the cluster idclusterCenter - the cluster center point before updatedcritFunValue - the last criterion function valuememberCount - the number of cluster membersvoid clusterCenterUpdated(double[] clusterCenter)
clusterCenter - the cluster center point ordinatesdouble getCriterionFunctionValue()
boolean isClusterConverging()
void setup(Configuration conf)
conf - the job configurationCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.