trop_wi_dist {TML}R Documentation

Tropical within-cluster measure

Description

This function calculates a within cluster measure by measuring the pairwise tropical distance between points in the cluster.

Usage

trop_wi_dist(D1, method = mean)

Arguments

D1

matrix of tropical points; rows are points

method

function; metric to measure; mean is the average pairwise tropical distance; max is the maximum pairwise tropical distance

Value

within cluster measure

Author(s)

David Barnhill david.barnhill@nps.edu

References

David Barnhill, Ruriko Yoshida (2023). Clustering Methods Over the Tropically Convex Sets.

Examples

D<-Sim_points
avg.m<-trop_wi_dist(D, method=mean)
max.m<-trop_wi_dist(D, method=max)

[Package TML version 2.3.0 Index]