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

invbin_cdf(n, rho,lambda)
% invbin_cdf.m - compute the Iverse Binomial Cumulative Distribution Function.
%   See 
%  Created by:  Jim Huntley,  03/19/04.

function [cdf] = invbin_cdf(n, rho,lambda)

sum1 = invbin_pdf(0, rho, lambda);
for jn = 1:n
    sum1 = sum1 + invbin_pdf(jn, rho, lambda);
cdf = sum1;

Contact us