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

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

function [pdf] = trunweib_pdf(x, a, b, c)

pdf = ((x+c)/a)^(b-1) * b * exp(-((x+c)/a)^b + abs(c/a)^b) / a;


Contact us