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

qbinom2_cdf(n,theta,lambda,nn)
% qbinom2_cdf.m - compute q-Binomial II Cumulative Distribution Function.
%   See "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   J. Wiley, p.103, 2005.                 
%
%  Created by:  Jim Huntley,  09/25/07.
%

function [cdf] = qbinom2_cdf(n,theta,lambda,nn)

sum1 = qbinom2_pdf(0,theta,lambda,nn);
for jn = 1:n
    sum1 = sum1 + qbinom2_pdf(jn,theta,lambda,nn);
end
cdf = sum1;

return



Contact us