public static class KMeans.KMeansIterationResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static KMeans.KMeansIterationResult |
FAILED_ITERATION |
Constructor and Description |
---|
KMeansIterationResult(ClusterInfo[] clusters, int convergentClusters, boolean successfullIteration)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
ClusterInfo[] |
getClusters()
Gets the last clusters information
|
int |
getConvergentClusters()
Sets the last clusters information
|
boolean |
isSuccessfullIteration()
Tells whether the iteration finished successfully or not
|
public static final KMeans.KMeansIterationResult FAILED_ITERATION
public KMeansIterationResult(ClusterInfo[] clusters, int convergentClusters, boolean successfullIteration)
clusters
- the last clusters informationconvergentClusters
- the number of converging clustersuccessfullIteration
- whether the iteration was successful or notpublic ClusterInfo[] getClusters()
ClusterInfo
public int getConvergentClusters()
ClusterInfo
public boolean isSuccessfullIteration()
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.