A - The to cluster pointsD - The Type of the distance measure.public abstract class Kmeans<A,D>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<A> |
center |
protected int |
k |
protected IDistanceMetric<D,A,A> |
metric |
protected java.util.List<A> |
points |
| Constructor and Description |
|---|
Kmeans(java.util.List<A> toClusterPoints,
IDistanceMetric<D,A,A> dist) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
initializeKMeans() |
abstract java.util.Map<double[],java.util.List<double[]>> |
kmeanscluster(int k) |