Method for obtaining the density (pdf) of a gamma_dist object.

# S3 method for class 'gamma_dist'
density(x, ...)

Arguments

x

The gamma_dist object

...

Additional arguments (not used)

Value

A function that computes the pdf at point(s) t

Examples

x <- gamma_dist(shape = 2, rate = 1)
f <- density(x)
f(1)
#> [1] 0.3678794
f(2)
#> [1] 0.2706706