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

wtdelnegbin_cdf(n, p, m, nn)
% wtdelnegbin_cdf.m - compute Weighted Delta Negative Binomial 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] = wtdelnegbin_cdf(n, p, m, nn)

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


Contact us