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

hurwitz_cdf(n, eta, ups)
% hurwitz_cdf.m - evaluates a Hurwitz Cumulative Distribution.
%   See "Univariate DiscreteDistributions", Johnson, Kemp & Kotz,
%   J. Wiley, p. 530, 2005.
%
%  Created by Jim Huntley,  3/15/07
%

function [cdf] = hurwitz_cdf(n, eta, ups)

sum1 = 0;
for jn = 1:n
    sum1 = sum1 + hurwitz_pdf(jn, eta, ups);
end
cdf = sum1;

return

Contact us