Description Usage Arguments Value Examples
The function was just an additional little experiment I wanted to try, and is not part of the core functions of the package.
roll_probabilities
creates a new transition matrix, runs the markov chain simulation, and produces a new probability distribution
for each die size in the range. The maximum value of the output of finish_game_chance
is recorded in the vector optimizedroll
.
This produces an interesting graph structure when plotted versus the die size.
1 | roll_probabilities(maxroll = 100)
|
maxroll |
The maximum dize. Essentially, the number of iterations of this function. |
A plot of the die size versus the max values of the vector returned by finish_game_chance
after each simulation.
1 | roll_probabilities(maxroll = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.