V
- vector datatype@Reference(authors="A. P. Reynolds, G. Richards, B. de la Iglesia, V. J. Rayward-Smith", title="Clustering Rules: A Comparison of Partitioning and Hierarchical Clustering Algorithms", booktitle="J. Math. Model. Algorithms 5(4)", url="https://doi.org/10.1007/s10852-005-9022-1", bibkey="DBLP:journals/jmma/ReynoldsRIR06") public class KMedoidsPAMReynolds<V> extends KMedoidsPAM<V>
In our implementation, we could not observe a substantial improvement over the original PAM algorithm. This may be because of modern CPU architectures, where saving an addition may be neglibile compared to caching and pipelining.
Reference:
A. P. Reynolds, G. Richards, B. de la Iglesia, V. J. Rayward-Smith
Clustering Rules: A Comparison of Partitioning and Hierarchical Clustering
Algorithms
J. Math. Model. Algorithms 5(4)
Modifier and Type | Class and Description |
---|---|
protected static class |
KMedoidsPAMReynolds.Instance
Instance for a single dataset.
|
static class |
KMedoidsPAMReynolds.Parameterizer<V>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
KEY
Key for statistics logging.
|
private static Logging |
LOG
The logger for this class.
|
initializer, k, maxiter
ALGORITHM_ID
DISTANCE_FUNCTION_ID
Constructor and Description |
---|
KMedoidsPAMReynolds(DistanceFunction<? super V> distanceFunction,
int k,
int maxiter,
KMedoidsInitialization<V> initializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
protected void |
run(DistanceQuery<V> distQ,
DBIDs ids,
ArrayModifiableDBIDs medoids,
WritableIntegerDataStore assignment)
Run the main algorithm.
|
getInputTypeRestriction, initialMedoids, run
getDistanceFunction
run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging LOG
private static final java.lang.String KEY
public KMedoidsPAMReynolds(DistanceFunction<? super V> distanceFunction, int k, int maxiter, KMedoidsInitialization<V> initializer)
distanceFunction
- distance functionk
- k parametermaxiter
- Maxiter parameterinitializer
- Function to generate the initial meansprotected void run(DistanceQuery<V> distQ, DBIDs ids, ArrayModifiableDBIDs medoids, WritableIntegerDataStore assignment)
KMedoidsPAM
run
in class KMedoidsPAM<V>
distQ
- Distance queryids
- IDs to processmedoids
- Current medoidsassignment
- Cluster assignment outputprotected Logging getLogger()
AbstractAlgorithm
getLogger
in class KMedoidsPAM<V>
Copyright © 2019 ELKI Development Team. License information.