This function proposes a new discrete parameter, based on the previous value, within the given proposal range, making sure that the maximum range is not exceeded.
ProposeDiscrete(params.old, proposal.range, max.range)
Old parameter value (an integer).
Range for new proposal (an integer).
Maximum value for new proposal (an integer).
Returns the new proposed parameter, which will be an integer in the
max.range], and within at most
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.