O
- Object type@Reference(authors="J. A. Hartigan", title="Chapter 3: Quick Partition Algorithms, 3.2 Leader Algorithm", booktitle="Clustering algorithms", url="http://dl.acm.org/citation.cfm?id=540298", bibkey="books/wiley/Hartigan75/C3") public class Leader<O> extends AbstractDistanceBasedAlgorithm<O,Clustering<PrototypeModel<O>>> implements ClusteringAlgorithm<Clustering<PrototypeModel<O>>>
Reference:
J. A. Hartigan
Clustering algorithms, Chapter 3, Quick Partition Algorithms
This implementation does not use the linear process described, but uses index structures. This may or may not be faster.
TODO: when no index is available, fall back to the original approach.
Modifier and Type | Class and Description |
---|---|
static class |
Leader.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Class logger.
|
private double |
threshold
Maximum distance from leading object,
|
ALGORITHM_ID
DISTANCE_FUNCTION_ID
Constructor and Description |
---|
Leader(DistanceFunction<? super O> distanceFunction,
double threshold)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
Clustering<PrototypeModel<O>> |
run(Relation<O> relation)
Run the leader clustering algorithm.
|
getDistanceFunction
run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private double threshold
private static final Logging LOG
public Leader(DistanceFunction<? super O> distanceFunction, double threshold)
distanceFunction
- Distance functionthreshold
- Maximum distance from leading objectpublic Clustering<PrototypeModel<O>> run(Relation<O> relation)
relation
- Data setpublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithm
getInputTypeRestriction
in interface Algorithm
getInputTypeRestriction
in class AbstractAlgorithm<Clustering<PrototypeModel<O>>>
protected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<Clustering<PrototypeModel<O>>>
Copyright © 2019 ELKI Development Team. License information.