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

topleon_cdf(x, bet, a, b)
% topleon_cdf.m - evaluates a Topp and Leone Cumulative Distribution.
%   See "Dataplot Reference Manual", vol.1, Aux.
%   http://www.nist.gov/div898/software/dataplot/refman2/auxillar/toppdf.htm.
%
%  Created by Jim Huntley,  01/09/10
%

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

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

return

Contact us