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

logisexp_pdf(x, bet, mu, alpha)
% logisexp_pdf.m - evaluates a Logistic Exponential Probability Density.
%   See "Dataplot Reference Manual", LEXPDF, Vol.1, Aux. Chapter.
%  Created by Jim Huntley,  11/07/08

function [pdf] = logisexp_pdf(x, bet, mu, alpha)

%persistent coef

    coef = bet / alpha;

argx = exp((x-mu)/alpha);
pdf = coef .* argx .* (argx-1).^(bet-1) ./ (1+(argx-1).^bet).^2;


Contact us