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

fermdir_pdf(n, b, c)
% fermdir_pdf.m - evaluates a Fermi Dirac Counting Probability Density.
%   See "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   J. Wiley, p.445, 2005. 
%  Created by Jim Huntley,  01/11/07

function [pdf] = fermdir_pdf(n, b, c)

pdf = binomial_coef(c-1,b-n) / binomial_coef(c,b);


Contact us