Computes the Mahalanobis distance between two 1-D arrays.
The Mahalanobis distance between 1-D arrays u and v, is defined as
where V is the covariance matrix. Note that the argument VI is the inverse of V.
Parameters : | u : (N,) array_like
v : (N,) array_like
VI : ndarray
|
---|---|
Returns : | mahalanobis : double
|