powered by
ContinuousPrior is a sub-class of Prior implementing a generic representation of continuous prior distributions over a compact interval on the real line.
ContinuousPrior
Prior
ContinuousPrior(pdf, support, tighten_support = FALSE, check_normalization = TRUE)# S4 method for ContinuousPrior show(object)
# S4 method for ContinuousPrior show(object)
vectorized univariate PDF function
numeric vector of length two with the bounds of the compact interval on which the pdf is positive.
logical indicating if the support should be tightened
logical indicating if it should be checked that pdf defines a density.
pdf
object of class ContinuousPrior
cf. parameter 'pdf'
support
cf. parameter 'support'
Discrete priors are supported via PointMassPrior
PointMassPrior
# NOT RUN { ContinuousPrior(function(x) 2*x, c(0, 1)) # }
Run the code above in your browser using DataLab