Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates


James Huntley (view profile)


generates random variates from over 870 univariate distributions

singh_cdf(n, a, alpha)
% singh_cdf.m - compute Singh Poisson Cumulative Distribution Function.
%   See "Word Length and Frequency Distributions in Different Text Genres", 
%  G. Antic et al., Graz University.
%  Created by:  Jim Huntley,  08/02/06.

function [cdf] = singh_cdf(n, a, alpha)

sum1 = singh_pdf(1,a,alpha);
for jn = 2:n
    sum1 = sum1 + singh_pdf(jn, a, alpha);
cdf = sum1;

Contact us