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

logdblexp_cdf(x, alpha, bet, mu)
% logdblexp_cdf.m - compute Log Double Exponential Cumulative Distribution Function.
%    See "Dataplot Reference Manual, LDECDF, NIST, 4/4/03. 
%
%  Created by:  Jim Huntley,  08/04/04.
%

function [cdf] = logdblexp_cdf(x, alpha, bet, mu)

if(x < bet+mu && x >= mu)
    cdf = 0.5*((x-mu)/bet)^(alpha);
end
if(x >= bet+mu)
    cdf = 1 - 0.5*((x-mu)/bet)^(-alpha);
end
    
return



Contact us