public class KMeansPlusPlusSeed extends Object implements KMeansSeed
KMeansSeed implementation attempts to select centroids from the
 set of data points that are well scattered.  This is done first selecting a
 data point at random as the first centroid and then selected data points to
 be the next centroid with a probability proportional to the distance between
 the data point and the nearest centroid.  It is based on the following paper:
   | Constructor and Description | 
|---|
| KMeansPlusPlusSeed() | 
| Modifier and Type | Method and Description | 
|---|---|
| DoubleVector[] | chooseSeeds(int numCentroids,
           Matrix dataPoints)Selects the best scattered  numCentroidsdata points fromdataPoints. | 
public DoubleVector[] chooseSeeds(int numCentroids, Matrix dataPoints)
numCentroids data points from dataPoints.  The actual DoubleVectors are returned, not a copy
 or wrapped version.chooseSeeds in interface KMeansSeedCopyright © 2012. All Rights Reserved.