View source: R/isometry_deviation.R
| isometry.rel.rms.error | R Documentation |
Computes the relative root-mean-square distance-matrix error after optional scalar calibration:
\left[
\frac{\sum_{i<j}(\alpha\hat D_{ij}-D_{ij})^2}
{\sum_{i<j}D_{ij}^2}
\right]^{1/2}.
isometry.rel.rms.error(
D.estimated,
D.true,
scale = TRUE,
true.tol = sqrt(.Machine$double.eps)
)
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. |
Numeric scalar relative RMS error.
D <- as.matrix(dist(1:4))
isometry.rel.rms.error(2 * D, D)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.