Calculate the approximated Banzhaf Index based on sampling
banzhaf_appro_func(value_func, n_rep, n_players, replace = TRUE)
The Banzhaf Index for each player
The valued function defined on the subsets of the number of players
The number of iterations to perform in the approximated calculation
Only used if value_func
is a function
.
The number of players in the game.
should sampling be with replacement?