Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates


James Huntley


generates random variates from over 870 univariate distributions

wtdeltpois_cdf(n, p, m, nn)
% wtdeltpois_cdf.m - compute Weighted Delta Poisson Cumulative Distribution Function.
%   See "Lagrangian Probability Distributions", P.C. Consul & F. Famoye,
%   Birkhauser, 2006, Table 2.4.
%  Created by:  Jim Huntley,  11/25/08.

function [cdf] = wtdeltpois_cdf(n, p, m, nn)

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


Contact us