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

expfrechet_pdf(x, sigma, lambda, alpha)
% expfrechet_pdf.m - evaluates an Exponentiated Frechet Probability Density.
%   See "The Exponentiated Frechet Distribution",  S. Nadarajah and S. Kotz,
%  Created by Jim Huntley,  02/10/10

function [pdf] = expfrechet_pdf(x, sigma, lambda, alpha)

coef = alpha * lambda * sigma^lambda;
argx = (sigma ./ x).^lambda;
pdf = coef .* (1-exp(-argx)).^(alpha-1) .*x.^(-(1+lambda)) .* exp(-argx);


Contact us