Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates


James Huntley


generates random variates from over 870 univariate distributions

extstir2c_cdf(n, k, m, tau)
% extstir2c_cdf.m - compute an Exteneded Stirling 2C Cumulative Distribution Function.
%   See "Univariate Discrete Distributions", Johnson, Kemp & Kotz,
%   J. Wiley, p.323, 2005. 
%  Created by Jim Huntley,  01/09/07

function [cdf] = extstir2c_cdf(n, k, m, tau)

sum1 = 0;
for jn = k:n
    sum1 = sum1 + extstir2c_pdf(jn, k, m, tau);
cdf = sum1;


Contact us