Squared Mahalanobis of a point and a Gaussian.
Returns the squared Mahalanobis distance of a point, p, with respect to the given
Gaussian, G.
Returns:
d: The squared Mahalanobis distance of the point w.r.t. the Gaussian.
CROSS-REFERENCE INFORMATION
This function calls:
This function is called by:
SOURCE CODE
0001 function d=SMahalanobis(G,p)
0002 % Squared Mahalanobis of a point and a Gaussian.
0003 %
0004 % Returns the squared Mahalanobis distance of a point, p, with respect to the given
0005 % Gaussian, G.
0006 %
0007 % Returns:
0008 % d: The squared Mahalanobis distance of the point w.r.t. the Gaussian.
0009
0010 vp=p-G.m;
0011 d=vp'*G.iS*vp;
0012