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

linfunbin_cdf(n, p, m, nn)
% linfunbin_cdf.m - compute Linear Function Binomial Cumulative Distribution Function.
%   See "Lagrangian Probability Distributions", P.C. Consul & F. Famoye,
%   Birkhauser, 2006, Table 2.4.
%
%  Created by:  Jim Huntley,  12/02/08.
%

function [cdf] = linfunbin_cdf(n, p, m, nn)

sum1 = linfunbin_pdf(0, p, m, nn);
for jn = 1:n
    sum1 = sum1 + linfunbin_pdf(jn, p, m, nn);
end
cdf = sum1;

return



Contact us