Note: Introduced in CPN Tools 3.2.2.

Interface

gamma(l:real, k:real) : real

where l,k>=0.0. Returns a drawing from a gamma distribution with parameters l and k, where l is the rate parameter (l=1.0/θ) and k is the shape parameter.

Raises Gamma exception, if k<= 0.0 or l<=0.0.

Related pages

Random distribution functions

Exponential
Normal

You must be logged in to post a comment.