Code covered by the BSD License
James Huntley (view profile)
09 Feb 2012
generates random variates from over 870 univariate distributions
%Gaus_pdf.m is the gaussian PDF.
% Created by Jim Huntley, 05/31/02
function [pdf] = gaus_pdf(x, m, sigma)
pdf = exp(-(x - m).^2 ./ (2*sigma^2)) ./ (sigma*sqrt(2*pi));