org.openimaj.ml.clustering.kmeans.fast
Class FastShortKMeansInit
java.lang.Object
org.openimaj.ml.clustering.kmeans.fast.FastShortKMeansInit
- Direct Known Subclasses:
- FastShortKMeansInit.RANDOM
public abstract class FastShortKMeansInit
- extends Object
- Author:
- Jonathon Hare , Sina Samangooei
Given a data source of samples and a set of clusters to fill, implementations of this class should
initialise the KMeans algorithm. A default RANDOM implementation is provided which uses
DataSource.getRandomRows(DATATYPE[])
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FastShortKMeansInit
public FastShortKMeansInit()
initFastKMeans
public abstract void initFastKMeans(DataSource<short[]> bds,
short[][] clusters)
throws IOException
- Parameters:
bds - the data source of samplesclusters - the clusters to init
- Throws:
IOException - problem reading samples
Copyright © 2011 The University of Southampton. All Rights Reserved.