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

dissurv_cdf(n,theta,bet)
% dissurv_cdf.m - compute a Discrete Survival Cumulative Distribution Function.
%   See "Univariate Discrete Distributions", Johnson, Kemp, and Kotz,
%   J. Wiley, p.325, 2005.                 
%
%  Created by:  Jim Huntley,  12/14/06.
%

function [cdf] = dissurv_cdf(n,theta,bet)

sum1 = dissurv_pdf(1,theta,bet);
for jn = 2:n
    sum1 = sum1 + dissurv_pdf(jn,theta,bet);
end
cdf = sum1;

return



Contact us