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

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

function [cdf] = logisexp_cdf(x, bet, mu, alpha)

%persistent coef

    coef = bet / alpha;

argx = exp((x-mu)/alpha);
cdf = 1 - 1./(1+(argx-1).^bet);


Contact us