Generation of Random Variates
09 Feb 2012
generates random variates from over 870 univariate distributions
|rtrunray_cdf(x, sigma, D)
% rtrunray_cdf.m - evaluates a Right-Truncated Rayleigh Cumulative Distribution.
% See "CFAR for Homogeneous Part of High-resolution Imagery", G. W. Lank et al.,
% IEEE Trans Aerospace and Electronic Sys., Vol. 28, No. 2, April, 1992.
% Created by Jim Huntley, 11/20/09
function [cdf] = rtrunray_cdf(x, sigma, D)
%persistent coef sigmasq
sigmasq = sigma^2;
coef = 1 / (1-exp(-0.5*D^2/sigmasq));
cdf = coef .* (1 - exp(-0.5.*x.^2/sigmasq));