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