Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates

by

 

generates random variates from over 870 univariate distributions

gentopleo_cdf(x, alpha, bet, a, b)
% gentopleo_cdf.m - tests a Generalized Topp & Leone Cumulative Distribution.
%   See "Dataplot Reference Manual", GTLCDF, NIST, Vol. 1, Aux.  
%
%  Created by Jim Huntley,  11/03/08
%

function [cdf] = gentopleo_cdf(x, alpha, bet, a, b)

argx = (x-a) ./ (b-a);
cdf = argx.^bet .* (alpha-(alpha-1).*argx).^bet;

end

Contact us