Function to calculate the Mahalanobis distance. Credit: Rcpp gallery.
1 | Mahalanobis(x, center, cov)
|
x |
(n x d) matrix of observed data |
center |
Row vector (d) of means |
cov |
(d x d) matrix of covariance |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.