![]() |
GaussianValuePURPOSE
Evaluates a Gaussian in an array of points
SYNOPSIS
function g=GaussianValue(G,x)
DESCRIPTION
Evaluates a Gaussian in an array of points Returns the evaluation of a Gaussian on a given set of points. x (given column-wise). CROSS-REFERENCE INFORMATION
This function calls:
SOURCE CODE
0001 function g=GaussianValue(G,x) 0002 % Evaluates a Gaussian in an array of points 0003 % 0004 % Returns the evaluation of a Gaussian on a given set of points. x (given 0005 % column-wise). 0006 0007 l=size(x,2); 0008 Sn=-0.5*G.iS; 0009 g=zeros(1,l); 0010 for i=1:l 0011 m=x(:,i)-G.m; 0012 g(i)=exp(m*Sn*m'); 0013 end 0014 g=G.ct*g; %apply the scale factor to all outputs 0015 |