public abstract class ShortKMeansInit extends Object
DataSource.getRandomRows(DATATYPE[])
Modifier and Type | Class and Description |
---|---|
static class |
ShortKMeansInit.RANDOM
Simple kmeans initialized on randomly selected samples.
|
Constructor and Description |
---|
ShortKMeansInit() |
Modifier and Type | Method and Description |
---|---|
abstract void |
initKMeans(DataSource<short[]> bds,
short[][] clusters)
Initialise the centroids based on the given data.
|
public ShortKMeansInit()
public abstract void initKMeans(DataSource<short[]> bds, short[][] clusters) throws IOException
bds
- the data source of samplesclusters
- the clusters to initIOException
- problem reading samples