Skip to contents

Those functions calculates the diameter (i.e. the maximum distance between two elements of the set) of a set (or subset) of elements based on a distance matrix.

Usage

diameter_set(distances)

diameter_cluster(distances, indices)

Arguments

distances

A distance matrix for the set of elements.

indices

Indices or names of the elements that are members of the cluster.

Value

The diameter of the set (or subset) as a positive real number.

Functions

  • diameter_set(): get the diameter of an entire set.

  • diameter_cluster(): calculates the diameter of a subset defined by indices.