Institut de Robòtica i Informàtica Industrial

SMahalanobis

PURPOSE ^

Squared Mahalanobis distance.

SYNOPSIS ^

function d=SMahalanobis(G,p)

DESCRIPTION ^

 Squared Mahalanobis distance.

 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 distance.
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;


Institut de Robòtica i Informàtica Industrial

Generated on Fri 24-Jul-2009 12:32:50 by m2html © 2003