Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates



generates random variates from over 870 univariate distributions

skewlapl_pdf(x, alpha, bet, mu)
% skewlapl_pdf.m - evaluates the Skew LaPlace Probability Density Function.  
%                  See, D. Scott
% Created by Jim Huntley,  03/02/05

function [pdf] = skewlapl_pdf(x, alpha, bet, mu)

if(x < mu)
    pdf = exp((x-mu)/alpha) / (alpha+bet);
elseif(x >= mu)
    pdf = exp(-(x-mu)/bet) / (alpha+bet);


Contact us