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

lagkatz_cdf(n, bet, b)
% lagkatz_cdf.m - compute Lagrangian Katz Cumulative Distribution Function.
%   See "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   J. Wiley, p.331, 2005.                 
%  Created by:  Jim Huntley,  06/26/07.

function [cdf] = lagkatz_cdf(n, bet, b)

sum1 = 0;
for jn = 1:n
    sum1 = sum1 + lagkatz_pdf(jn, bet, b);
cdf = sum1;


Contact us