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