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

cosine_pdf(x)
% cosine_pdf.m - evaluates a Cosine Probability Density Function.
%   See "Dataplot Reference Manual, COSPDF", AUX-109, NIST, 3/25/97.
%
%  Created by Jim Huntley,  03/10/04
%
%

function [pdf] = cosine_pdf(x)

  pdf = (1 + cos(x)) / (2*pi);

return

Contact us