V
- vector datatype@Reference(authors="Erich Schubert, Peter J. Rousseeuw", title="Faster k-Medoids Clustering: Improving the PAM, CLARA, and CLARANS Algorithms", booktitle="preprint, to appear", url="https://arxiv.org/abs/1810.05691", bibkey="DBLP:journals/corr/abs-1810-05691") @Priority(value=-100) public class KMedoidsFastPAM1<V> extends KMedoidsPAM<V>
This acceleration gives exactly (assuming perfect numerical
accuracy) the same results as the original PAM. For further improvements that
can affect the result, see also KMedoidsFastPAM
, which is recommended
for usage in practice.
Reference:
Erich Schubert, Peter J. Rousseeuw
Faster k-Medoids Clustering: Improving the PAM, CLARA, and CLARANS
Algorithms
preprint, to appear
Modifier and Type | Class and Description |
---|---|
protected static class |
KMedoidsFastPAM1.Instance
Instance for a single dataset.
|
static class |
KMedoidsFastPAM1.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 |
---|
KMedoidsFastPAM1(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 KMedoidsFastPAM1(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.