Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates



generates random variates from over 870 univariate distributions

binbet_cdf(n, nn, w, p)
% binbet_cdf.m - evaluates a Compound Binomial Beta Cumulative Distribution.
%   See "Handbook of Beta Distribution and Its Applications", A.K Gupta &,
%   S. Nadarajah, p.140, 2004. 
%  Created by Jim Huntley,  09/29/11

function [cdf] = binbet_cdf(n, nn, w, p)

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


Contact us