bounds | R Documentation |
bounds()
returns the range of the support of a prior or data distribution.
bounds(dist, ...)
## S4 method for signature 'ContinuousPrior'
bounds(dist, ...)
## S4 method for signature 'PointMassPrior'
bounds(dist, ...)
dist |
a univariate |
... |
further optional arguments |
numeric
of length two, c(lower, upper)
bounds(ContinuousPrior(function(x) dunif(x, .2, .4), c(.2, .4)))
# > 0.2 0.4
bounds(PointMassPrior(c(0, .5), c(.3, .7)))
# > 0.3 0.7
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.