is.metric {ecotraj}R Documentation

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)

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

Value

A boolean indicating metric property

Author(s)

Miquel De Cáceres, CREAF


[Package ecotraj version 1.1.0 Index]