Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates

by

James Huntley (view profile)

 

generates random variates from over 870 univariate distributions

dbtrlogis_pdf(x, P, Q, k)
% dbtrlogis_pdf.m - evaluates a Doubly Truncated Logistic Probability Density.
%   See "Continuous Univariate Distributions", Johnson, Kotz and Balakrishnan,
%   Vol.2, J. Wiley, 1995, p.142.
%
%  Created by Jim Huntley,  10/13/08
%

function [pdf] = dbtrlogis_pdf(x, P, Q, k)

pdf = (1 - k*x)^(1/k-1) / ((P-Q)*(1+(1-k*x)^(1/k))^2);

return


Contact us