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

stevens_cdf(n, b, c)
% stevens_cdf.m - compute Stevens craig (Occupied Cells) Cumulative Distribution Function.
%   See "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   J. Wiley, p.443, 2005.                 
%  Created by:  Jim Huntley,  07/16/07.

function [cdf] = stevens_cdf(n, b, c)

sum1 = stevens_pdf(0, b, c);
for jn = 1:n
    sum1 = sum1 + stevens_pdf(jn, b, c);
cdf = sum1;


Contact us