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

jvp_pdf(x)
% jvp_pdf.m - compute a Jackson-de la Vallee Pousin Probability Density.
%   See "Generating Nonuniform Random Variates", Chap., 4, L. Devroye.
%
%  Created by:  J. Huntley,  09/08/06.
%

function [pdf] = jvp_pdf(x)
     
pdf = 3 * (sin(x)/x)^4 / pi;

return
     

Contact us