Log density
log_density.RdThe log of the density at x. For a tweedie, x = 0 gives the log of
the point mass, -lambda.
Arguments
- dist
A gamma_distribution or tweedie.
- x
Numeric vector.
- ...
Unused; for methods.
Examples
log_density(gamma_distribution(2, 3), c(1, 5))
#> [1] -2.530558 -2.254453