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

strchexp_pdf(x, bet, theta, xtrem)
% strchexp_pdf.m - evaluates a Stretched Exponential Probability Density.
%   See "The Amoroso Distribution", G. E. Crooks, Tech. Note 003v5 (2010-01-14)
%   Vector form of the PDF!!!
%  Created by Jim Huntley,  02/17/10

function [pdf] = strchexp_pdf(x, bet, theta, xtrem)

%persistent coef

    coef = bet / abs(theta);

argx = x ./ theta;
pdf = coef .* argx.^(bet-1) .* exp(-(argx.^bet));


Contact us