Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates

by

 

generates random variates from over 870 univariate distributions

nbinnbin_cdf(n, Q, QQ, k, M)
% nbinnbin_cdf.m - compute Negative Binomial Negative Binomial Cumulative Distribution Function.
%   See "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   J. Wiley, p.334, 2005.                 
%
%  Created by:  Jim Huntley,  07/20/07.
%

function [cdf] = nbinnbin_cdf(n, Q, QQ, k, M)

sum1 = nbinnbin_pdf(0, Q, QQ, k, M);
for jn = 1:n
    sum1 = sum1 + nbinnbin_pdf(jn, Q, QQ, k, M);
end
cdf = sum1;

return



Contact us