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

headmtail_cdf(n, nn)
% headmtail_cdf.m - compute Heads-Minus-Tails Cumulative Distribution Function.
%   See "Heads-Minus-Tails Distribution", Wolfram,
%   "http://mathworld.wolfram.com/Heads-Minus-TailsDistribution.html".
%
%  Created by Jim Huntley,  01/04/08
%

function [cdf] = headmtail_cdf(n, nn)

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

return



Contact us