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

genunif_cdf(x,k,c,h,a)
% genunif_cdf.m - compute Generalized Uniform Cumulative Distribution Function.             
% See "Continuous Univariate Distributions", Johnson, Kotz, & Balakrishnan,
% Wiley, Vol. 2, p. 307, 1995.
%
%  Created by:   Jim Huntley,  02/14/07.
%

function [cdf] = genunif_cdf(x,k,c,h,a)

cdf = 1 - (1-k*(x-a)^c)^h;

return



Contact us