Learn R Programming

ecotraj (version 1.1.1)

is.metric: Metricity

Description

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

Usage

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

Value

A boolean indicating metric property

Arguments

x

Either an object of class trajectories, a symmetric matrix or an object of class dist containing the distance values between pairs of ecological states.

tol

Tolerance value for metricity

Author

Miquel De Cáceres, CREAF