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

yule_pdf(n, p)
% yule_pdf.m - evaluates a Yule Probability Density.
%   See YULPDF, Dataplot Reference Manual, Vol. 1, Aux., NIST   
%
%  Created by Jim Huntley,  08/16/11
%

function [pdf] = yule_pdf(n, p)

gpp1 = gamma(p+1);
pdf = p * gpp1 * exp(gammaln(n+1) - gammaln(n+p+2));

return

Contact us