Description Usage Arguments Value Examples
This funciton is called after each update of the probabilities. It is a placeholder for a function that makes the randomization updates less drastic. The default function does nothing to the probabilities.
1 | probTemperation(probs)
|
probs |
The current set of probabilities. |
A set of probabilities
1 2 3 4 5 6 7 8 9 | ## Not run:
probTemperation(probs) # Default. Will give back the same probabilities.
probTemperation <- function(probs) {
probs <- sqrt(probs)/sum(sqrt(probs))
return(probs)
}
probTemperation(probs) # Will now give back the less dramatic square rooted probabilities.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.