public static class DoubleKMeans.Result extends DoubleCentroidsResult implements DoubleNearestNeighboursProvider
| Modifier and Type | Field and Description |
|---|---|
protected int |
changedCentroidCount |
protected int |
iterations |
protected DoubleNearestNeighbours |
nn |
centroidsCLUSTER_HEADER| Constructor and Description |
|---|
Result() |
| Modifier and Type | Method and Description |
|---|---|
HardAssigner<double[],double[],IntDoublePair> |
defaultHardAssigner()
Get the default hard assigner for this clusterer.
|
DoubleNearestNeighbours |
getNearestNeighbours() |
int |
numChangedCentroids()
Get the number of changed centroids in the last iteration.
|
int |
numIterations()
Get the number of K-Means iterations that produced this result.
|
asciiHeader, binaryHeader, equals, getCentroids, numClusters, numDimensions, readASCII, readBinary, toString, writeASCII, writeBinaryprotected DoubleNearestNeighbours nn
protected int iterations
protected int changedCentroidCount
public Result()
public HardAssigner<double[],double[],IntDoublePair> defaultHardAssigner()
SpatialClustersdefaultHardAssigner in interface SpatialClusters<double[]>defaultHardAssigner in class DoubleCentroidsResultpublic DoubleNearestNeighbours getNearestNeighbours()
getNearestNeighbours in interface DoubleNearestNeighboursProviderpublic int numIterations()
public int numChangedCentroids()