V
- Vector typeD
- Distance type@Reference(title="Clustering my means of Medoids", authors="Kaufman, L. and Rousseeuw, P.J.", booktitle="Statistical Data Analysis Based on the L_1\u2013Norm and Related Methods") public class PAMInitialMeans<V,D extends NumberDistance<D,?>> extends Object implements KMeansInitialization<V>, KMedoidsInitialization<V>
Clustering my means of Medoids
Kaufman, L. and Rousseeuw, P.J.
in: Statistical Data Analysis Based on the L_1–Norm and Related Methods
Modifier and Type | Class and Description |
---|---|
static class |
PAMInitialMeans.Parameterizer<V,D extends NumberDistance<D,?>>
Parameterization class.
|
Constructor and Description |
---|
PAMInitialMeans()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<V> |
chooseInitialMeans(Relation<V> relation,
int k,
PrimitiveDistanceFunction<? super V,?> distanceFunction)
Choose initial means
|
DBIDs |
chooseInitialMedoids(int k,
DistanceQuery<? super V,?> distQ2)
Choose initial means
|
public List<V> chooseInitialMeans(Relation<V> relation, int k, PrimitiveDistanceFunction<? super V,?> distanceFunction)
KMeansInitialization
chooseInitialMeans
in interface KMeansInitialization<V>
relation
- Relationk
- Parameter kdistanceFunction
- Distance functionpublic DBIDs chooseInitialMedoids(int k, DistanceQuery<? super V,?> distQ2)
KMedoidsInitialization
chooseInitialMedoids
in interface KMedoidsInitialization<V>
k
- Parameter kdistQ2
- Distance function