public class RandomStartStrategy extends Object implements StartStrategy
| Constructor and Description |
|---|
RandomStartStrategy() |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,HashMap<String,Double>> |
getCentroids(Integer num,
HashMap<String,HashMap<String,Double>> data)
Samples out of data desired number of entries to use as initial cluster centers.
|
public LinkedHashMap<String,HashMap<String,Double>> getCentroids(Integer num, HashMap<String,HashMap<String,Double>> data)
getCentroids in interface StartStrategynum - The desired number of centers.data - The data. JMotif's tfidf structure used.Copyright © 2021. All rights reserved.