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 |
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]