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

teja_pdf(n, p)
% teja_pdf.m - evaluates a Logistic Exponential Probability Density.
%   See "Lagrangian Probability Distributions", P.C. Consul & F. Famoye,
%   Birkhauser, 2006, Table 2.1.
%
%   Doesn't normalize for p >~ 0.33!!!
%
%  Created by Jim Huntley,  11/10/08
%

function [pdf] = teja_pdf(n, p)

q = 1 - p;

pdf = binomial_coef(3*(n-1)/2,n-1) * p^((n-1)/2) * q^n / n;

end

Contact us