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

daceybin_pdf(n, p, y)
% daceybin_pdf.m - evaluates a Dacey Binomial Probability Density.
%   See "An Introduction to Quadrat Analysis", R.W. Thomas.
%  Created by Jim Huntley,  01/26/10

function [pdf] = daceybin_pdf(n, p, y)

pdf = exp(log(exp(-y) * ((1-p)*y^n + p*n*y^(n-1))) - gammaln(n+1));


Contact us