Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates



generates random variates from over 870 univariate distributions

extstir1f_pdf(n, nn, theta, tau)
% extstir1f_pdf.m - evaluates an Extended Stiling 1F Probability Density.
%   See "Univariate Discrete Distributions", Johnson, Kemp & Kotz,
%   J. Wiley, p.323, 2005. 
%  Created by Jim Huntley,  01/03/07

function [pdf] = extstir1f_pdf(n, nn, theta, tau)

%persistent coef

% Initializations.
    coef = exp(gammaln(theta+tau)- gammaln(theta+tau+nn));

% Evaluate PDF.

pdf = carlitz1(nn,n,tau) * theta^n * coef;


Contact us