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

expgenbet_pdf(n, alpha, bet)
% expgenbet_pdf.m - evaluates an Exponential Generalized Beta Probability Density.
%   See "Dataplot Reference Manual", Vol.2, Aux, NIST, 
%  Created by Jim Huntley,  10/18/11

function [pdf] = expgenbet_pdf(n, alpha, bet)

%persistent coef

    coef = 1 /  beta(alpha,bet);

pdf = coef * beta(alpha+1,n+bet);


Contact us