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

qhyper1_cdf(n, s, r, m, nn)
% qhyper1_cdf.m - compute quasi-Hypergeometric (-Polya) Cumulative Distribution Function.
%   See "Sheffer sequences, probability distributions
%    and approximation operators", Craciun and DiBucchianico, 29 Oct, 2004.    
%  Created by Jim Huntley,  9/26/07

function [cdf] = qhyper1_cdf(n, s, r, m, nn)

sum1 = qhyper1_pdf(0, s, r, m, nn);
for jn = 1:n
    sum1 = sum1 + qhyper1_pdf(jn, s, r, m, nn);
cdf = sum1;


Contact us