C - Points to cluster.public class GMeans<C extends org.apache.commons.math3.ml.clustering.Clusterable>
extends java.lang.Object
KMeansPlusPlusClusterer as the k-means
cluster algorithm.| Constructor and Description |
|---|
GMeans(java.util.Collection<C> toClusterPoints)
Initializes a basic cluster for the given Point using Mannhatten distance and
seed=1
|
GMeans(java.util.Collection<C> toClusterPoints,
org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeasure,
long seed)
Initializes a cluster for the given Point using a given distance meassure and
a seed.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<C>> |
cluster() |
public GMeans(java.util.Collection<C> toClusterPoints)
toClusterPoints - Points which should be clusteredpublic GMeans(java.util.Collection<C> toClusterPoints, org.apache.commons.math3.ml.distance.DistanceMeasure distanceMeasure, long seed)
toClusterPoints - PdistanceMeasure - seed - public java.util.List<org.apache.commons.math3.ml.clustering.CentroidCluster<C>> cluster()