public class RandomSeed extends Object implements KMeansSeed
KMeansSeed implementation selects data points at random from any
given data set to serve as the initial centroid seeds.| Constructor and Description |
|---|
RandomSeed() |
| Modifier and Type | Method and Description |
|---|---|
DoubleVector[] |
chooseSeeds(int numCentroids,
Matrix dataPoints)
Returns an array of length
numCentroids that contains centroids
composed of either vectors from dataPoints or a linear combination
of vectors from dataPoints. |
public DoubleVector[] chooseSeeds(int numCentroids, Matrix dataPoints)
numCentroids that contains centroids
composed of either vectors from dataPoints or a linear combination
of vectors from dataPoints.chooseSeeds in interface KMeansSeedCopyright © 2012. All Rights Reserved.