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

skewt_cdf(x, nu, lambda)
% skwewt_cdf.m - compute Skew T Cumulative Distribution Function.
%                See "Dataplot Reference Manual", STPDF.
%                  Vector Form of CDF !!!
%  Created by:  Jim Huntley,  03/02/05.

function [cdf] = skewt_cdf(x, nu, lambda)

% Integrate PDF to get CDF.
pdf = skewt_pdf(x,nu,lambda);
for jz = 1:size(x,2)
    cdf(jz) = simps(x(1:jz),pdf(1:jz));


Contact us