ValuePURPOSEEvaluation of a Gaussian.
SYNOPSISfunction v=Value(g,x)
DESCRIPTIONEvaluation of a Gaussian. Returns the evaluation of a Gaussian on a given set of points, 'x'. CROSS-REFERENCE INFORMATIONThis function calls:
SOURCE CODE0001 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 |