ContinuousPrior
is a sub-class of Prior
implementing
a generic representation of continuous prior distributions over a compact
interval on the real line.
ContinuousPrior(
pdf,
support,
order = 10,
label = NA_character_,
tighten_support = FALSE,
check_normalization = TRUE
)
vectorized univariate PDF function
numeric vector of length two with the bounds of the compact interval on which the pdf is positive.
integer
, integration order of the employed Gaussian quadrature
integration rule to evaluate scores. Automatically set to length(n2_pivots)
if length(n2_pivots) == length(c2_pivots) > 1
, otherwise c2 and n2
are taken to be constant in stage-two and replicated to match the number of
pivots specified by order
object label (string)
logical indicating if the support should be tightened
logical indicating if it should be checked
that pdf
defines a density.
pdf
cf. parameter 'pdf'
support
cf. parameter 'support'
pivots
normalized pivots for integration rule (in [-1, 1]) the actual pivots are scaled to the support of the prior
weights
weights of of integration rule at pivots
for
approximating integrals over delta
Discrete priors are supported via PointMassPrior
ContinuousPrior(function(x) 2*x, c(0, 1))
#> ContinuousPrior<[0,1]>