Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates

by

James Huntley (view profile)

 

generates random variates from over 870 univariate distributions

maxbol_pdf(n, b, c)
% maxbol_pdf.m - evaluates a Maxwell Boltzman Counting Probability Density.
%   See "Univariate Discrete Distributions", Johnson, Kemp, & Kotz,
%   J. Wiley, 2005, p. 444.
%
%  Created by Jim Huntley,  7/11/07
%

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

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

return

Contact us