Function soco::distance::mahalanobis
source · [−]pub fn mahalanobis<'a, T>(q: &DMatrix<T>, mean: Config<T>) -> Result<NormFn<T>> where
T: RealField + Value<'a>,
Expand description
Mahalanobis distance square. This norm is $1$-strongly convex and $1$-Lipschitz smooth.
$Q$ must be positive semi-definite.