Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates

by

 

generates random variates from over 870 univariate distributions

gaus_pdf(x, m, sigma)
%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));

return

Contact us