Computes the Mahalanobis distance between two n-vectors u and v, which is defined as
\sqrt{ (u-v) V^{-1} (u-v)^T }
where V is the covariance matrix. Note that the argument VI is the inverse of V.
Parameters : | u : ndarray
v : ndarray
VI : ndarray
|
---|---|
Returns : | d : double
|