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

trunpar_cdf(x, alpha, gam, nu)
% trunpar_cdf.m - evaluates a Truncated Pareto Cumulative Distribution.
%   See "Parameter Estimation for the Truncated Pareto Distribution", 
%   I. B. Aban et al., U. Nevada, 15 May, 2004.
%  Created by Jim Huntley,  08/25/06

function [cdf] = trunpar_cdf(x, alpha, gam, nu)

cdf = 1 - gam^alpha * (x^(-alpha)-nu^(-alpha)) / (1-(gam/nu)^alpha);


Contact us