 | LinkageMedianLinkage Method |
Computes the distance between two clusters as the difference between centroids,
using the size of each cluster as a weighting factor.
Namespace:
CenterSpace.NMath.Core
Assembly:
NMath (in NMath.dll) Version: 7.3
Syntaxpublic static double MedianLinkage(
double Drp,
double Drq,
double Dpq,
double Nr,
double Np,
double Nq
)
Public Shared Function MedianLinkage (
Drp As Double,
Drq As Double,
Dpq As Double,
Nr As Double,
Np As Double,
Nq As Double
) As Double
public:
static double MedianLinkage(
double Drp,
double Drq,
double Dpq,
double Nr,
double Np,
double Nq
)
static member MedianLinkage :
Drp : float *
Drq : float *
Dpq : float *
Nr : float *
Np : float *
Nq : float -> float
Parameters
- Drp
- Type: SystemDouble
The distance between R and P. - Drq
- Type: SystemDouble
The distance between R and Q. - Dpq
- Type: SystemDouble
The distance between P and Q. - Nr
- Type: SystemDouble
The number of objects in R. - Np
- Type: SystemDouble
The number of objects in P. - Nq
- Type: SystemDouble
The number of objects in Q.
Return Value
Type:
DoubleThe distance between R and P + Q.
Remarks
During cluster analysis when two groups P and Q are united, a linkage function
computes the distance between the new group P + Q and another group R.
This is sometimes referred to as "weighted pair-group method using the centroid
average," and abbreviated WPGMC.
See Also