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

factorial_cdf(n, nn)
% factorial_cdf.m - evaluates a Factorial Cumulative Distribution.
%   See "A Generalized Polya-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] = factorial_cdf(n, nn)

sum1 = factorial_pdf(0, nn);
for jn = 1:n
    sum1 = sum1 + factorial_pdf(jn, nn);
cdf = sum1;


Contact us