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

fatlife_cdf(x, gam, mu, bet)
% fatlife_cdf.m - evaluates a Cumulative Fatigue Life Probability Distribution.
%   See Wikipedia, http://en.wikipedia.org/wiki/Birnbaum-Saunders_distribution.
%
%  Created by Jim Huntley,  03/10/04
%

function [cdf] = fatlife_cdf(x, gam, mu, bet)
    
arg1 = (sqrt((x-mu)/bet) - sqrt(bet/(x-mu))) / gam;  
cdf = gaus_cdf(arg1,0,1);

return

Contact us