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

wcauchy_pdf(x, p, mu)
% wcauchy_pdf.m - evaluates a Wrapped-Cauchy Probability Density.
%   See "Dataplot Reference Manual, WCACDF", Aux-370, NIST, 3/26/1997.
%
%  Created by Jim Huntley,  8/25/04
%

function [pdf] = wcauchy_pdf(x, p, mu)

pdf = (1 - p^2) / (2*pi*(1 + p^2 - 2*p*cos(x-mu)));

return

Contact us