Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates



generates random variates from over 870 univariate distributions

truncbeta_pdf(x, a, b, c)
% truncbeta_pdf.m - evaluates a truncated beta Probability Density.
%   See "Stichastic Decomposition in M/M/inf Queues with Markow Modulated Service Rates", 
%   M. Baykal-Gursoy and W. Xiao, Rutgers, 3/29/2004.
%  Created by Jim Huntley,  07/17/06

function [pdf] = truncbeta_pdf(x, a, b, c)

%persistent cb

    cb = c*beta(a,b-a);

arg = x ./ c;
pdf = arg.^(a-1) .* (1-arg).^(b-a-1) ./ cb;


Contact us