Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates

by

James Huntley (view profile)

 

generates random variates from over 870 univariate distributions

lospowprod_cdf(x, nn, m, a)
% lospowprod_cdf.m - evaluates an Largest Order Statistic Power Product Cumulative Distibution.
%   See "Handbook of Beta Distribution and Its Applications", A.K Gupta &,
%   S. Nadarajah, 2004. 
%
%  Created by Jim Huntley,  09/12/11
%

function [cdf] = lospowprod_cdf(x, nn, m, a)

if(m == nn)
    cdf = 1-x.^(a*nn).*(a.*nn.*log(x) - 1);
else
    cdf = (m*x.^(a*nn) - nn.*x.^(a*m))./(m - nn);
end

return

Contact us