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

dblpois2_cdf(n, lambda, mu)
% dblpois2_cdf.m - evaluatess a Double Poisson 2 Cumulative Distribution.
%   See "An Introduction to Probability Theory", P.A.P. Moran,
%   Oxford, p.85, 1967.
%  Created by Jim Huntley,  10/9/08

function [cdf] = dblpois2_cdf(n, lambda, mu)

sum1 = dblpois2_pdf(0, lambda, mu);
for jn = 1:n
    sum1 = sum1 + dblpois2_pdf(jn,lambda,mu);
cdf = sum1;


Contact us