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

stutpois_cdf(n,k,lambda)
% stutpois_cdf.m - compute Stuttering Poisson Cumulative Distribution Function.
%   See "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   J. Wiley, p.460, 2005.                  
%
%  Created by:  Jim Huntley,  12/07/06.
%

function [cdf] = stutpois_cdf(n,k,lambda)

sum1 = stutpois_pdf(0,k,lambda);
for jn = 1:n
    sum1 = sum1 + stutpois_pdf(jn,k,lambda);
end
cdf = sum1;

return



Contact us