Get support of a prior or data distribution
Source:R/Prior.R
, R/ContinuousPrior.R
, R/PointMassPrior.R
bounds.Rd
bounds()
returns the range of the support of a prior or data distribution.
Usage
bounds(dist, ...)
# S4 method for class 'ContinuousPrior'
bounds(dist, ...)
# S4 method for class 'PointMassPrior'
bounds(dist, ...)
Arguments
- dist
a univariate
distribution
object- ...
further optional arguments
Examples
bounds(ContinuousPrior(function(x) dunif(x, .2, .4), c(.2, .4)))
#> [1] 0.2 0.4
# > 0.2 0.4
bounds(PointMassPrior(c(0, .5), c(.3, .7)))
#> [1] 0.0 0.5
# > 0.3 0.7