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

takacs_cdf(n, P, mu)
% takacs_cdf.m - evaluates a Takacs Cumulative Distribution.
%   See "A Generalized Ploya-Eggenberger Model Generating Various Discrete 
%   Probability Distributions", Indian J. of Stat., v.58, Ser A, Pt.2, p243, 1996.
%  Created by Jim Huntley,  08/18/11

function [cdf] = takacs_cdf(n, P, mu)

sum1 = 0;
for jn = 1:n
    sum1 = sum1 + takacs_pdf(jn, P, mu);
cdf = sum1;


Contact us