R/Prior.R
, R/PointMassPrior.R
, R/ContinuousPrior.R
bounds.Rd
bounds()
returns the range of the support of a prior or data distribution.
bounds(dist, ...)
# S4 method for PointMassPrior
bounds(dist, ...)
# S4 method for ContinuousPrior
bounds(dist, ...)
a univariate distribution
object
further optional arguments
numeric
of length two, c(lower, upper)
bounds(PointMassPrior(c(0, .5), c(.3, .7)))
#> [1] 0.0 0.5
# > 0.3 0.7
bounds(ContinuousPrior(function(x) dunif(x, .2, .4), c(.2, .4)))
#> [1] 0.2 0.4
# > 0.2 0.4