public class RandomClusterer extends Object implements SparseMatrixClusterer<IndexClusters>
SparseMatrix.rowCount()| Constructor and Description |
|---|
RandomClusterer()
unseeded random
|
RandomClusterer(int nclusters)
seeded random
|
RandomClusterer(int nclusters,
long seed)
seeded random
|
RandomClusterer(long seed)
seeded random
|
| Modifier and Type | Method and Description |
|---|---|
IndexClusters |
cluster(SparseMatrix data) |
int[][] |
performClustering(SparseMatrix data) |
public RandomClusterer()
public RandomClusterer(long seed)
seed - public RandomClusterer(int nclusters)
nclusters - public RandomClusterer(int nclusters, long seed)
nclusters - seed - random seedpublic IndexClusters cluster(SparseMatrix data)
cluster in interface DataClusterer<SparseMatrix,IndexClusters>data - the data to be clusteredpublic int[][] performClustering(SparseMatrix data)
performClustering in interface Clusterer<SparseMatrix>