NMath Reference Guide

## Linkage Class |

Class Linkage provides functions for computing the distance between clusters
of objects.

Inheritance Hierarchy

Syntax

The Linkage type exposes the following members.

Constructors

Methods

Name | Description | |
---|---|---|

CentroidLinkage | Computes the distance between two clusters as the difference between centroids. | |

CompleteLinkage | Computes the distance between two clusters as the greatest distance between any two objects in the different clusters (furthest neighbors). | |

MedianLinkage | Computes the distance between two clusters as the difference between centroids, using the size of each cluster as a weighting factor. | |

SingleLinkage | Computes the distance between two clusters as the distance of the two closest objects (nearest neighbors) in the clusters. | |

UnweightedAverageLinkage | Computes the distance between two clusters as the average distance between all pairs of objects in the two different clusters. | |

WardLinkage | Computes the distance between two clusters using Ward's method. | |

WeightedAverageLinkage | Computes the distance between two clusters as the average distance between all pairs of objects in the two different clusters, using the size of each cluster as a weighting factor. |

Fields

Name | Description | |
---|---|---|

CentroidFunction | Centroid linkage function. Encapsulates Linkage.CentroidLinkage as a Linkage.Function delegate. | |

CompleteFunction | Complete (farthest-neighbor) linkage function. Encapsulates Linkage.CompleteLinkage as a Linkage.Function delegate. | |

MedianFunction | Median linkage function. Encapsulates Linkage.MedianLinkage as a Linkage.Function delegate. | |

SingleFunction | Single (nearest-neighbor) linkage function. Encapsulates Linkage.SingleLinkage as a Linkage.Function delegate. | |

UnweightedAverageFunction | Unweighted average linkage function. Encapsulates Linkage.UnweightedAverageLinkage as a Linkage.Function delegate. | |

WardFunction | Ward linkage function. Encapsulates Linkage.WardLinkage as a Linkage.Function delegate. | |

WeightedAverageFunction | Weighted average linkage function. Encapsulates Linkage.WeightedAverageLinkage as a Linkage.Function delegate. |

Remarks

Instances of delegate type Linkage.Function are used by class ClusterAnalysis
to compute the distance between clusters of objects. Delegates are provided
as static variables for single, complete, unweighted average, weighted average,
centroid, median, and Ward's linkage functions.

See Also