Skip to contents

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

Miquel De Cáceres, CREAF