%----------------------------------------------------------------------------- % % $Id: gauss.m,v 1.2 1999/09/15 05:51:32 philipc Exp $ % % Function to return the normal distribution with zero mean % and unit standard deviation % %----------------------------------------------------------------------------- function g=gauss(x) g = exp(-0.5*x.*x)/sqrt(2*pi);