powered by
ProposeDiscrete(params.old, proposal.range, max.range)
max.range
proposal.range
params.old
proposeContinuous
# Previous parameter value param = rpois(1, 5) # Propose new value within range [0, 10], with proposal width 2 new.param = ProposeDiscrete(param, 2, 10)
Run the code above in your browser using DataLab