Institut de Robòtica i Informàtica Industrial

SMahalanobis

PURPOSE ^

Squared Mahalanobis of a point and a Gaussian.

SYNOPSIS ^

function d=SMahalanobis(G,p)

DESCRIPTION ^

  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


Institut de Robòtica i Informàtica Industrial

Generated on Wed 05-Aug-2009 15:05:21 by m2html © 2003