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

trigamma_cdf(n, c)
% trigamma_cdf.m - compute Trigamma Cumulative Distribution Function.
%   See "Random Variate Generation for the Digamma and Trigamma Distributions", 
%   L. Devroye, McGill, 1991.
%
%  Created by:  Jim Huntley,  07/15/05.
%

function [cdf] = trigamma_cdf(n, c)

sum1 = trigamma_pdf(1, c);
for jn = 2:n
    sum1 = sum1 + trigamma_pdf(jn, c);
end
cdf = sum1;
    
return



Contact us