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

circline_cdf(x, R)
% circline_cdf.m - evaluates a Circle-Line Cumulative Distribution.
%   See "Circle Line Picking -- from Wolfram MathWorld", 
%   http://mathworld.wolfram.com/CircleLinePicking.html.
%
%  Created by Jim Huntley,  11/24/03
%

function [cdf] = circline_cdf(x, R)

cdf = 2 * asin(x/(2*R)) / pi;

return

Contact us