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

trggsd_cdf(n, alpha, bet)
% trggsd_cdf.m - evaluates a Truncated Generalized Geometric Series Cumulative Distribution.
%   See "New Generalizations of Generalized Geometric Series Distributions",   
%   A. Hassan, African J. of Math and Comp Sci Research, vol.3, no.5, May, 2010. 
%  Created by Jim Huntley,  08/22/11

function [cdf] = trggsd_cdf(n, alpha, bet)

sum1 = 0;
for jn = 1:n
    sum1 = sum1 + trggsd_pdf(jn, alpha ,bet);
cdf = sum1;


Contact us