gamma_dist object.R/gamma_dist.R
density.gamma_dist.RdMethod for obtaining the density (pdf) of a gamma_dist object.
# S3 method for class 'gamma_dist'
density(x, ...)A function that computes the pdf at point(s) t
x <- gamma_dist(shape = 2, rate = 1)
f <- density(x)
f(1)
#> [1] 0.3678794
f(2)
#> [1] 0.2706706