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

extnegbin_cdf(n, m, theta, bet)
% extnegbin_cdf.m - compute Extended Negative Binomial Cumulative Distribution.
%   See "An Extension of Panjer's Recursion", K. Hess et al., Dresden,
%  Created by:  Jim Huntley,  10/14/08.

function [cdf] = extnegbin_cdf(n, m, theta, bet)

sum1 = 0;
for jn = m:n
    sum1 = sum1 + extnegbin_pdf(jn, m, theta, bet);
cdf = sum1;


Contact us