Skip to contents

The log of the density at x. For a tweedie, x = 0 gives the log of the point mass, -lambda.

Usage

log_density(dist, x, ...)

Arguments

dist

A gamma_distribution or tweedie.

x

Numeric vector.

...

Unused; for methods.

Value

Numeric vector the length of x.

Examples

log_density(gamma_distribution(2, 3), c(1, 5))
#> [1] -2.530558 -2.254453