O
- Object type for KMedoids initialization@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<O> extends Object implements KMeansInitialization<NumberVector>, KMedoidsInitialization<O>
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>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Class logger.
|
Constructor and Description |
---|
PAMInitialMeans()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T extends NumberVector,V extends NumberVector> |
chooseInitialMeans(Database database,
Relation<T> relation,
int k,
NumberVectorDistanceFunction<? super T> distanceFunction,
NumberVector.Factory<V> factory)
Choose initial means
|
DBIDs |
chooseInitialMedoids(int k,
DBIDs ids,
DistanceQuery<? super O> distQ)
Choose initial means
|
private static final Logging LOG
public <T extends NumberVector,V extends NumberVector> List<V> chooseInitialMeans(Database database, Relation<T> relation, int k, NumberVectorDistanceFunction<? super T> distanceFunction, NumberVector.Factory<V> factory)
KMeansInitialization
chooseInitialMeans
in interface KMeansInitialization<NumberVector>
T
- Input vector typeV
- Output vector typedatabase
- Database contextrelation
- Relationk
- Parameter kdistanceFunction
- Distance functionfactory
- Factory for output vectors.public DBIDs chooseInitialMedoids(int k, DBIDs ids, DistanceQuery<? super O> distQ)
KMedoidsInitialization
chooseInitialMedoids
in interface KMedoidsInitialization<O>
k
- Parameter kids
- Candidate IDs.distQ
- Distance functionCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.