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

shftexp_pdf(x, a, theta)
% wilhil_pdf.m - evaluatess a Shifted 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/18/10

function [pdf] = shftexp_pdf(x, a, theta)

argx = (x-a) ./ theta;
pdf = exp(-argx) ./ theta;


Contact us