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

invbinom_cdf(n, nn, p)
% invbinom_cdf.m - compute Inverse Binomial 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] = invbinom_cdf(n, nn, p)

sum1 = 0;
for jn = nn:2:n
    sum1 = sum1 + invbinom_pdf(jn, nn, p);
cdf = sum1;

Contact us