V
- vector datatypeD
- distance value type@Title(value="K-Medians") @Reference(title="Clustering via Concave Minimization", authors="P. S. Bradley, O. L. Mangasarian, W. N. Street", booktitle="Advances in neural information processing systems", url="http://nips.djvuzone.org/djvu/nips09/0368.djvu") public class KMediansLloyd<V extends NumberVector<?>,D extends Distance<D>> extends AbstractKMeans<V,D,MeanModel<V>>
Clustering via Concave Minimization
P. S. Bradley, O. L. Mangasarian, W. N. Street
in: Advances in neural information processing systems
Modifier and Type | Class and Description |
---|---|
static class |
KMediansLloyd.Parameterizer<V extends NumberVector<?>,D extends Distance<D>>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
The logger for this class.
|
initializer, k, maxiter
INIT_ID, K_ID, MAXITER_ID, SEED_ID
Constructor and Description |
---|
KMediansLloyd(PrimitiveDistanceFunction<NumberVector<?>,D> distanceFunction,
int k,
int maxiter,
KMeansInitialization<V> initializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
Clustering<MeanModel<V>> |
run(Database database,
Relation<V> relation)
Run k-medians.
|
assignToNearestCluster, getInputTypeRestriction, incrementalUpdateMean, macQueenIterate, means, medians
getDistanceFunction
makeParameterDistanceFunction, run
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
run
private static final Logging LOG
public KMediansLloyd(PrimitiveDistanceFunction<NumberVector<?>,D> distanceFunction, int k, int maxiter, KMeansInitialization<V> initializer)
distanceFunction
- distance functionk
- k parametermaxiter
- Maxiter parameterinitializer
- Initialization methodpublic Clustering<MeanModel<V>> run(Database database, Relation<V> relation)
database
- Databaserelation
- relation to useprotected Logging getLogger()
AbstractAlgorithm
getLogger
in class AbstractAlgorithm<Clustering<MeanModel<V extends NumberVector<?>>>>