pairwise_dist.robustmahadist | R Documentation |
Computes the pairwise Mahalanobis distances using a robustly estimated covariance matrix, which can be more resistant to outliers.
## S3 method for class 'robustmahadist'
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 robust Mahalanobis distances.
X <- matrix(rnorm(100), 10, 10)
dist_matrix <- pairwise_dist.robustmahadist(list(), X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.