Class: FeldtRuby::CompleteLinkageMetric
- Inherits:
-
ClusterLinkageMetric
- Object
- Distance
- Metric
- CompositeMetric
- ClusterLinkageMetric
- FeldtRuby::CompleteLinkageMetric
- Defined in:
- lib/feldtruby/statistics/clustering.rb
Overview
Complete linkage metric between clusters - distance between furthest members.
Instance Method Summary collapse
Methods included from SetDistance
Methods included from CompositableDistance
Instance Method Details
#calc(cluster1, cluster2) ⇒ Object
26 27 28 |
# File 'lib/feldtruby/statistics/clustering.rb', line 26 def calc(cluster1, cluster2) pairwise_distances(cluster1, cluster2, @sub_metric).max end |