| ContinuousPrior-class {adoptr} | R Documentation |
Continuous univariate prior distributions
Description
ContinuousPrior is a sub-class of Prior implementing
a generic representation of continuous prior distributions over a compact
interval on the real line.
Usage
ContinuousPrior(
pdf,
support,
order = 10,
label = NA_character_,
tighten_support = FALSE,
check_normalization = TRUE
)
Arguments
pdf |
vectorized univariate PDF function |
support |
numeric vector of length two with the bounds of the compact interval on which the pdf is positive. |
order |
|
label |
object label (string) |
tighten_support |
logical indicating if the support should be tightened |
check_normalization |
logical indicating if it should be checked
that |
Slots
pdfcf. parameter 'pdf'
supportcf. parameter 'support'
pivotsnormalized pivots for integration rule (in [-1, 1]) the actual pivots are scaled to the support of the prior
weightsweights of of integration rule at
pivotsfor approximating integrals overdelta
See Also
Discrete priors are supported via PointMassPrior
Examples
ContinuousPrior(function(x) 2*x, c(0, 1))