Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates

by

James Huntley (view profile)

 

generates random variates from over 870 univariate distributions

pareto4_pdf(x, mu, alpha, gam, sigma)
% pareto4_pdf.m - evaluates a Pareto IV Probability Density.
%   See "Continunous Univariate Distributions", v.1, Johnson, Kotz, & Balakrishnan,
%   J. Wiley, 1995, p.576.
%
%   Creadted by:    J. Huntley,     08/05/07
%

function [pdf] = pareto4_pdf(x, mu, alpha, gam, sigma)

%persistent coef

%if(isempty(coef))
    coef = alpha / (gam*sigma);
%end

pdf = coef * ((x-mu)/sigma)^(1/gam-1) * (1 + ((x-mu)/sigma)^(1/gam))^(-alpha-1);
      
return

Contact us