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