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

% logseries_pdf.m - compute the Log Series Cumulative Distribution Function.
%               See Eric W. Weisstein. "Log-Series Distribution." 
%               From MathWorld--A Wolfram Web Resource. 
%  Created by:  Jim Huntley,  03/12/04.

function [pdf] = logseries_pdf(x,theta);

pdf = -theta^x / (x*log(1-theta));


Contact us