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

scbirnsan_pdf(x, alpha, bet)
% scbirnsan_pdf.m - evaluates a Special Case Birnbaum Sanders Probability Density.
%   See "A New Family of Life Distributions Based on Birnbaum-Sanders
%   Distribution", J.A. Diaz-Garcia and V. Leiva-Sanchez,
%   http://www.cimat.mx/reportes/enlinea/I-02-17.pdf.
%
%   Vector Form of PDF!!!
%
%   Created by Jim Huntley,  12/10/09
%

function [pdf] = scbirnsan_pdf(x, alpha, bet)

%persistent coef

%if(isempty(coef))
    coef = 1 / (pi*alpha*sqrt(2*bet));
%end

argx = (x./bet + bet./x - 2).^2;
pdf = coef .* (x+bet) ./ (x.^1.5 .* (1+argx./alpha^4));

return

Contact us