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

cardiod_pdf(x, mu, rho)
% cardioid_pdf.m - evaluates a Cardioid Probability Density.
%   See VGAM, 9 February, 2011.
%
%  Created by Jim Huntley,  09/13/11
%

function [pdf] = cardiod_pdf(x, mu, rho)

pdf = (1 + 2.*rho.*cos(x-mu)) ./ (2*pi);

return

Contact us