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

binchi_cdf(n,nn,b,c,md2)
% binchi_cdf.m - evaluates a Compound Binomial Chi Cumulative Distribution.
%   See "The Compounding of the Binomial and Generalized Beta Distributions",   
%   T. Gerstenkorn, Prob. and Statistical Inference, p.87, 1982.                 
%
%  Created by:  Jim Huntley,  06/08/11.
%

function [cdf] = binchi_cdf(n,nn,b,c,md2)

sum1 = binchi_pdf(0, nn, b, c, md2);
for jn = 1:n
    sum1 = sum1 + binchi_pdf(jn, nn, b, c, md2);
end
cdf = sum1;

return



Contact us