Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates


James Huntley (view profile)


generates random variates from over 870 univariate distributions

thomas_cdf(n, m, alpha)
% thomas_cdf.m - compute Thomas Cumulative Distribution Function.
%   See "Quantitative Spatial Analysis", R. Reich & R. Davis, CSU, 2000, web.
%  Created by:  Jim Huntley,  04/08/05.

function [cdf] = thomas_cdf(n, m, alpha)

sum1 = thomas_pdf(0, m, alpha);
for jn = 1:n
    sum1 = sum1 + thomas_pdf(jn, m, alpha);
cdf = su1;

Contact us