Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates

by

James Huntley (view profile)

 

generates random variates from over 870 univariate distributions

circline_pdf(x, R)
% circline_pdf.m - evaluates a Circle-Line Probability Density.
%   See "Circle Line Picking -- from Wolfram MathWorld", 
%   http://mathworld.wolfram.com/CircleLinePicking.html.
%
%  Created by Jim Huntley,  07/27/06
%

function [pdf] = circline_pdf(x, R)

pdf = 1 / (pi*sqrt(1 - (x/(2*R))^2));

return

Contact us