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

felix_cdf(n,lambda)
% felix_cdf.m - compute Felix Cumulative Distribution Function.
%   See "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   J. Wiley, p.465, 2005.                 
%
%  Created by:  Jim Huntley,  11/10/08.
%

function [cdf] = felix_cdf(n,lambda)

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

return



Contact us