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_cdf(x, m, sigma)
%Gaus_cdf.m  computes the gaussian CDF.
%See Proakis, p. 39.
%
%  Created by Jim Huntley,  05/31/02
%

function [cdf] = gaus_cdf(x, m, sigma)

cdf = 0.5 + 0.5 .* erf((x - m) ./ (sigma * sqrt(2)));

return

Contact us