dist_mean {truelies}R Documentation

Find mean of a probability density function

Description

Find mean of a probability density function

Usage

dist_mean(dist, l = attr(dist, "limits")[1], r = attr(dist,
  "limits")[2])

Arguments

dist

A one-argument function returned from update_prior()

l

Lower bound of the density's support

r

Upper bound of the density's support

Value

A scalar

Examples


d1 <- update_prior(10, 40, P = 5/6, prior = stats::dunif)
dist_mean(d1)


[Package truelies version 0.2.0 Index]