Constructs a semi-deterministic Plinko board. The board is semi-deterministic in that the final values are predetermined, but the paths to get from the drop point to the values are random.
plinko_board(x, ...) # S3 method for numeric plinko_board( x, n_bin, bin_width, n_ball = NULL, center = NULL, limits = NULL, row_ratio = 2, frames_till_drop = 4, slot_height = NULL, stack = TRUE, ... ) # S3 method for distribution plinko_board( x, n_bin = NULL, bin_width = NULL, n_ball = 50, sampling = c("quantiles", "random"), center = NULL, ... )
x | The final values that the Plinko board will "sediment" to. |
---|---|
... | Arguments passed on to lower-level implementations of |
n_bin | The number of bins used in the Binomial approximation of |
bin_width | The width of the bins used in the Binomial approximation of |
n_ball | The number of balls to drop. Defaults to |
center | The location at which to drop balls. Defaults to |
limits | The minimum and maximum value shown on the board. Defaults to
|
row_ratio | The ratio between the width of the slots and the height of
a single row. Defaults to |
frames_till_drop | The number of frames in between each drop of a ball.
Defaults to |
slot_height | Height of the slots. If |
stack | Should the balls stack on top of each other? Default |
sampling | For |
An object of class c("plinko_board", "list")
.