pairwise_dist.mahalanobis | R Documentation |
Computes the pairwise Mahalanobis distances using an inverse covariance matrix estimated from the data matrix 'X' with shrinkage.
## S3 method for class 'mahalanobis'
pairwise_dist(obj, X)
X |
Numeric matrix where rows represent observations and columns represent variables. |
dist_obj |
A list that might include additional parameters for distance computation, currently unused. |
An object of class 'dist' containing the computed Mahalanobis distances.
X <- matrix(rnorm(100), 10, 10)
dist_matrix <- pairwise_dist.mahalanobis(list(), X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.