Institut de Robòtica i Informàtica Industrial

Value

PURPOSE ^

Evaluation of a Gaussian.

SYNOPSIS ^

function v=Value(g,x)

DESCRIPTION ^

   Evaluation of a Gaussian.

   Returns the evaluation of a Gaussian on a given set of points, 'x'.

CROSS-REFERENCE INFORMATION ^

This function calls:
  • size Returns the size of a policy.
This function is called by:

SOURCE CODE ^

0001 function v=Value(g,x)
0002 %   Evaluation of a Gaussian.
0003 %
0004 %   Returns the evaluation of a Gaussian on a given set of points, 'x'.
0005 
0006   l=size(x,2);
0007   Sn=-0.5*g.iS;
0008 
0009   v=zeros(1,l);
0010   for i=1:l
0011     m=x(:,i)-g.m;
0012     v(i)=g.ct*exp(m'*Sn*m);
0013   end
0014


Institut de Robòtica i Informàtica Industrial

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