Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates


James Huntley (view profile)


generates random variates from over 870 univariate distributions

trunray_pdf(x, b, c)
% trunray_pdf.m - evaluates a Truncated Rayleigh Probability Density.
%   See "WAFO.Description of wtraylpdf", at
%  Created by Jim Huntley,  08/09/06

function [pdf] = trunray_pdf(x, b, c)

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


Contact us