Crate coin_flip_simulation

Source
Expand description

Libary for a coin flipping simulation.

Calculates the expected and empirical counts and probabilities of coin flips for a specified number of iterations and flips per iteration.

Structs§

CoinFlipResult
Represents the result of running the coin flip simulation.
EmpiricalResult
Represents an empirical result.

Functions§

get_all_outcomes
Gets a vector of all possible outcomes as strings.
get_num_outcomes
Gets the number of possible outcomes.
run
Runs a coin flip simulation for a specified number of iterations and flips per iteration.