Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates



generates random variates from over 870 univariate distributions

genhypfac_cdf(n, N, a, m)
% genhypfac_cdf.m - evaluates a Generalized Hypergeometric Factorial Cumulative Distribution.
%   See "Univariate Discrete Distributions", Johnson, Kemp & Kotz,
%   J. Wiley, p.435, 2005. 
%  Created by Jim Huntley,  02/07/07

function [cdf] = genhypfac_cdf(n, N, a, m)

sum1 = genhypfac_pdf(0, N, a, m);
for jn = 1:n
    sum1 = sum1 + genhypfac_pdf(jn, N, a, m);
cdf = sum1;


Contact us