Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates

by

James Huntley (view profile)

 

generates random variates from over 870 univariate distributions

poispear6_int_cdf(n,a,b,t,c,d,nmax)
% poispear6_int_cdf.m - computes a discrete Poisson Pearson6 Cumulative Distribution Function.
%   See "Laplace Transforms, Mellin Transforms and Mixed Poisson Processes", 
%   P. Albrecht, Scand. Actuarial J., vol.1, p.58, 1984.
%
%  Created by Jim Huntley,  09/22/09
%

function [cdf] = poispear6_int_cdf(n,a,b,t,c,d,nmax)

sum1 = poispear6_int_pdf(0, a, b, t, c, d, nmax);
for jn = 1:n
    sum1 = sum1 + poispear6_int_pdf(jn, a, b, t, c, d, nmax);
end
cdf = sum1;

return



Contact us