shape_adapter | R Documentation |
Create object to adapt proposal shape.
shape_adapter(type = "covariance", kappa = 1)
type |
Type of shape adapter to use. One of:
|
kappa |
Decay rate exponent in |
List of functions with entries
initialize
, a function for initializing adapter state and proposal
parameters at beginning of chain,
update
a function for updating adapter state and proposal parameters on
each chain iteration,
finalize
a function for performing any final updates to adapter state and
proposal parameters on completion of chain sampling (may be NULL
if
unused).
state
a zero-argument function for accessing current values of adapter
state variables.
variance_shape_adapter()
, covariance_shape_adapter()
proposal <- barker_proposal()
adapter <- shape_adapter()
adapter$initialize(proposal, chain_state(c(0, 0)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.