mahalanobis | R Documentation |
Generic for computing the squared Mahalanobis distance.
mahalanobis(x, center, cov, inverted = FALSE, ...)
## S4 method for signature 'ANY,ANY,SWoodburyMatrix'
mahalanobis(x, center, cov, inverted = FALSE, ...)
x |
Numeric vector or matrix |
center |
Numeric vector representing the mean; if omitted, defaults to zero mean |
cov |
Covariance matrix |
inverted |
Whether to treat |
... |
Passed to the |
x = ANY,center = ANY,cov = SWoodburyMatrix
: Use the Woodbury matrix identity to compute the
squared Mahalanobis distance with the implicit matrix as the covariance.
mahalanobis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.