View source: R/equal_surplus_division.R
equal_surplus_division | R Documentation |
Calculate the equal surplus division value
equal_surplus_division(characteristic_func, n_players = 0)
characteristic_func |
The valued function defined on the subsets of the number of players |
n_players |
Only used if |
The equal surplus division value for each player
n <- 10
v <- function(coalition) {
if (length(coalition) > n/2) {
return(1)
} else {
return(0)
}
}
equal_surplus_division(v,n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.