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

glostgame_cdf(n, p, j, a)
% glostgame_cdf.m - compute Generalized Lost Games Cumulative Distribution Function.
%   See "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   J. Wiley, p.504, 2005.                 
%  Created by:  Jim Huntley,  07/09/07.

function [cdf] = glostgame_cdf(n, p, j, a)

sum1 = 0;
for jn = j:n
    sum1 = sum1 + glostgame_pdf(jn, p, j, a);
cdf = sum1;


Contact us