Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates

by

James Huntley (view profile)

 

generates random variates from over 870 univariate distributions

kuzmin_cdf(n)
% kuzmin_cdf.m - compute Gauss-Kuzmin Cumulative Distribution Function.
%   See "Gauss-Kuzmin Distribution", Wikipedia.
%
%  Created by:  Jim Huntley,  08/03/06.
%

function [cdf] = kuzmin_cdf(n)

sum1 = kuzmin_pdf(1);
for jn = 2:n
    sum1 = sum1 + kuzmin_pdf(jn);
end
cdf = sum1;
    
return



Contact us