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

git8_cdf(n, nn, p, q)
% git8_cdf.m - compute Generalized Inverse Trinomial 8 Cumulative Distribution Function.
%   See "A Generalization of the Inverse Trinomial", K. Aoyama and K. Shimizu, Keio U., 
%   23 June, 2005.
%  Created by:  Jim Huntley,  08/31/06.

function [cdf] = git8_cdf(n, nn, p, q)

sum1 = git8_pdf(0, nn, p, q);
for jn = 1:n
    sum1 = sum1 + git8_pdf(jn, nn, p, q);
cdf = sum1;

Contact us