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

betabin_cdf(n, alpha, bet, nn)
% betabin_cdf.m - compute Beta Binomial Cumulative Distribution Function.
%    See "Dataplot Reference Manual, BBNCDF, Aux-31, NIST, 3/24/97. 
%
%  Created by:  Jim Huntley,  08/04/04.
%

function [cdf] = betabin_cdf(n, alpha, bet, nn)

sum1 = betabin_pdf(0,alpha,bet,nn);
for jn = 1:n
    sum1 = sum1 + betabin_pdf(jn,alpha,bet,nn);
end
cdf = sum1;
    
return



Contact us