
Integrate a function against a distribution's support, with checks
Source:R/distributions.R
morie_dist_integrate.RdIntegrates integrand (default: the density, giving total mass 1)
over the distribution's support. Stability conditions – the integrand
must be finite and the density non-negative and integrable – are
documented and pre-checked before stats::integrate() is called.
Examples
morie_dist_integrate(morie_distribution("normal", mean = 0, sd = 1))$value
#> [1] 1