public static class ShortKMeans.Result extends ShortCentroidsResult implements ShortNearestNeighboursProvider
| Modifier and Type | Field and Description |
|---|---|
protected int |
changedCentroidCount |
protected int |
iterations |
protected ShortNearestNeighbours |
nn |
centroidsCLUSTER_HEADER| Constructor and Description |
|---|
Result() |
| Modifier and Type | Method and Description |
|---|---|
HardAssigner<short[],float[],IntFloatPair> |
defaultHardAssigner()
Get the default hard assigner for this clusterer.
|
ShortNearestNeighbours |
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 ShortNearestNeighbours nn
protected int iterations
protected int changedCentroidCount
public Result()
public HardAssigner<short[],float[],IntFloatPair> defaultHardAssigner()
SpatialClustersdefaultHardAssigner in interface SpatialClusters<short[]>defaultHardAssigner in class ShortCentroidsResultpublic ShortNearestNeighbours getNearestNeighbours()
getNearestNeighbours in interface ShortNearestNeighboursProviderpublic int numIterations()
public int numChangedCentroids()