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

betageom_cdf(n, alpha, bet)
% betageom_cdf.m - evaluates a Beta Geometric Cumulative Distribution.
%   See "A Compendium of Distributions", ModelRisk 3.0, Vose Software,
%  Created by Jim Huntley,  08/13/11

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

sum1 = betageom_pdf(0, alpha, bet);
for jn = 1:n
    sum1 = sum1 + betageom_pdf(jn, alpha, bet);
cdf = sum1;


Contact us