Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates


James Huntley


generates random variates from over 870 univariate distributions

shiftgomp_pdf(x, b, eta)
% shiftgomp_pdf.m - evaluates a Shifted Gompertz Probability Density.
%   See Wikipedia - "Shifted Gompertz Distribution".
%   Creadted by:    J. Huntley,     08/09/07

function [pdf] = shiftgomp_pdf(x, b, eta)

arg = exp(-b*x);
pdf = b * arg * exp(-eta*arg) * (1+eta*(1-arg));


Contact us