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

interrupt_cdf(n,K,D,tau)
%interrupt_cdf.m - evaluates an Interrupted Cumulative Distribution.
%   "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   Wiley, 2005, p. 503.

function[cdf] = interrupt_cdf(n,K,D,tau)

sum1 = interrupt_pdf(1,K,D,tau);
for jn = 2:n
    sum1 = sum1 + interrupt_pdf(jn,K,D,tau);
end
cdf = sum1;

return
    
    
    
    



Contact us