View source: R/isometry_deviation.R
| isometry.distance.correlations | R Documentation |
Computes Pearson and Spearman correlations between estimated and true pairwise distances over the upper-triangular distance entries.
isometry.distance.correlations(
D.estimated,
D.true,
true.tol = sqrt(.Machine$double.eps)
)
D.estimated |
Estimated distance matrix or |
D.true |
Ground-truth distance matrix or |
true.tol |
Non-negative tolerance. Pairs with true distance less than or equal to this value are excluded from relative metrics. |
Named numeric vector with entries pearson_cor and spearman_cor.
D <- as.matrix(dist(1:4))
isometry.distance.correlations(2 * D, D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.