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

trunray_cdf(x, b, c)
% trunray_cdf.m - evaluates a Truncated Rayleigh Cumulative Distribution.
%   See "WAFO.Description of wtraylpdf", at
%   http://www.maths.lth.se/matstat/wafo/documentation/wafodoc/wstats/wtraylpdf.html
%
%  Created by Jim Huntley,  08/09/06
%

function [cdf] = trunray_cdf(x, b, c)

cdf = 1 - exp(-0.5*((x-c)^2 - c^2)/b^2);

return

Contact us