View source: R/mahalanobis_depth.R
| mahalanobis_depth | R Documentation |
Computes the Mahalanobis depth of one or more query points with respect
to a reference distribution estimated from data.
mahalanobis_depth(x, data, mu = NULL, sigma = NULL)
x |
Numeric matrix of query points (m x d), or a numeric vector of length d for a single query point. |
data |
Numeric matrix of reference data (n x d). Used to estimate the mean and covariance. |
mu |
Optional numeric vector of length d. If supplied, overrides the
mean estimated from |
sigma |
Optional numeric matrix (d x d). If supplied, overrides the
covariance estimated from |
Numeric vector of depth values in (0, 1], one per query point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.