View source: R/immunogen_mh_tools_2.r
Given the current state of the MH chain, pick a proposal state. Also returns Q(proposal state|current state)
1 | get_proposal(h, unif.prop = T, radius)
|
h |
current State of the MH chain |
unif.prop |
If TRUE, proposal is chosen from [0,1]^m. If false, only looks in the overlap of [0,1]^m with a cube around h with side length 2*radius |
radius |
If unif.prop is FALSE, we look for a proposal state in the overlap of [0.1]^m and [h-radius, h+radius]. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.