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

gengam_cdf(x, k, c, a, b)
% gengam_cdf.m - compute Generalized Gamma Cumulative Distribution Function.
%    See "Dataplot Reference Manual, GGDCDF, Aux-206, NIST, 3/25/97. 
%  Created by:  Jim Huntley,  08/03/04.

function [cdf] = gengam_cdf(x, k, c, a, b)

arg = ((x-a)/b)^c;
cdf = gammainc(arg,k);                % Note difference in definition of 'gammainc' 
                                      % between Dataplot and Matlab.


Contact us