View source: R/isometry_deviation.R
| isometry.geodesic.diagnostics | R Documentation |
Computes signed and scale-regime diagnostics for comparing estimated graph
geodesic distances with reference geodesic distances. Distances are first
optionally calibrated by the least-squares scale from isometry.scale().
isometry.geodesic.diagnostics(
D.estimated,
D.true,
scale = TRUE,
true.tol = sqrt(.Machine$double.eps),
band.probs = c(1/3, 2/3)
)
D.estimated |
Estimated distance matrix or |
D.true |
Ground-truth distance matrix or |
scale |
Logical scalar. If |
true.tol |
Non-negative tolerance. Pairs with true distance less than or equal to this value are excluded from relative metrics. |
band.probs |
Numeric vector of two probabilities used to split reference distances into short, middle, and long distance bands. |
Named numeric vector with relative geodesic stress, signed residual bias, shortcut fraction, relative absolute residual quantiles, and median signed relative residuals in short/mid/long reference-distance bands.
D <- as.matrix(dist(1:4))
isometry.geodesic.diagnostics(1.1 * D, D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.