is.metric: Metricity

View source: R/is.metric.R

is.metricR Documentation

Metricity

Description

Checks whether the input dissimilarity matrix is metric (i.e. all triplets fulfill the triangle inequality).

Usage

is.metric(d, tol = 1e-04)

Arguments

d

A symmetric matrix or an object of class dist containing the distance values between pairs of ecosystem states (see details).

tol

Tolerance value for metricity

Value

a boolean indicating metric property

Author(s)

Miquel De Cáceres, CREAF


emf-creaf/ecotraj documentation built on April 17, 2025, 5:42 a.m.