Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates



generates random variates from over 870 univariate distributions

zeta_pdf(n, alpha)
% zeta_pdf.m - evaluates a Zeta (Zipf) Probability Density Function.
%   See FORTRAN code: prob_f90, John Burkhardt, 12/19/99.
%  Created by Jim Huntley,  03/04/04

function [pdf] = zeta_pdf(n, alpha)

pdf = n.^(-alpha) ./ zeta(alpha);


Contact us