measurements.calcs.mahalanobis
measurements.calcs.mahalanobis(params, param_means, inv_cov)
Calculates the Mahalanobis distance.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
params |
NDArray[Shape[Dim, Cand], Float] |
The parameters for which the Mahalanobis distance is to be calculated. | required |
param_means |
NDArray[Shape[Dim, 1], Float] |
The mean of the distribution. | required |
inv_cov |
NDArray[Shape[Dim, Dim], Float] |
The inverse of the covariance matrix of the distribution. | required |
Returns
| Type | Description |
|---|---|
NDArray[Shape[Cand], Float] |
The Mahalanobis distance of each parameter from the distribution. |