@Reference(authors="K. Florek, J. \u0141ukaszewicz, J. Perkal, H. Steinhaus, S. Zubrzycki", title="Sur la liaison et la division des points d\'un ensemble fini", booktitle="Colloquium Mathematicae 2(3-4)", bibkey="journals/misc/FlorekLPSZ51") @Alias(value={"single-link","single","slink","nearest","nearest-neighbor","de.lmu.ifi.dbs.elki.algorithm.clustering.hierarchical.SingleLinkageMethod"}) @Priority(value=100) public class SingleLinkage extends java.lang.Object implements Linkage
The distance of two clusters is simply the minimum of all pairwise distances between the two clusters.
The distance of two clusters is defined as: \[d_{\min}(A,B):=\min_{a\in A}\min_{b\in B} d(a,b)\]
This can be computed recursively using: \[d_{\min}(A\cup B,C) = \min(d(A,C), d(B,C))\]
Note that with similarity functions, one would need to use the maximum instead to get the same effect.
Reference:
K. Florek, J. Ćukaszewicz, J. Perkal, H. Steinhaus, S. Zubrzycki
Sur la liaison et la division des points d'un ensemble fini
Colloquium Mathematicae 2(3-4)
Modifier and Type | Class and Description |
---|---|
static class |
SingleLinkage.Parameterizer
Class parameterizer.
|
Modifier and Type | Field and Description |
---|---|
static SingleLinkage |
STATIC
Static instance of class.
|
Constructor and Description |
---|
SingleLinkage()
Deprecated.
use the static instance
STATIC instead. |
Modifier and Type | Method and Description |
---|---|
double |
combine(int sizex,
double dx,
int sizey,
double dy,
int sizej,
double dxy)
Compute combined linkage for two clusters.
|
public static final SingleLinkage STATIC
@Deprecated public SingleLinkage()
STATIC
instead.public double combine(int sizex, double dx, int sizey, double dy, int sizej, double dxy)
Linkage
combine
in interface Linkage
sizex
- Size of first cluster x before mergingdx
- Distance of cluster x to j before mergingsizey
- Size of second cluster y before mergingdy
- Distance of cluster y to j before mergingsizej
- Size of candidate cluster jdxy
- Distance between clusters x and y before mergingCopyright © 2019 ELKI Development Team. License information.