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

expgenbet_cdf(n, alpha, bet)
% expgenbet_cdf.m - evaluates an Exponential Generalized Beta Cumulative Distribution.
%   See "Dataplot Reference Manual", Vol.2, Aux, NIST, 
%  Created by Jim Huntley,  10/18/11

function [cdf] = expgenbet_cdf(n, alpha, bet)

pdf = expgenbet_pdf(n, alpha, bet);
sn = size(n,2);
for jn = 1:sn
    cdf(jn) = sum(pdf(1:jn));


Contact us