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

shsk1_cdf(n, a, p, theta)
% shsk1_cdf.m - compute Shenton & Skees I Cumulative Distribution Function.
%   See "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   J. Wiley, p.324, 2005.                 
%
%  Created by:  Jim Huntley,  10/02/07.
%

function [cdf] = shsk1_cdf(n, a, p, theta)

sum1 = 0;
for jn = 1:n
    sum1 = sum1 + shsk1_pdf(jn, a, p, theta);
end
cdf = sum1;

return



Contact us