cardinalityGame {CoopGame} | R Documentation |
Create a list containing
all information about a specified cardinality game:
For a cardinality game the worth of each coalition
is simply the number of the members of the coalition.
cardinalityGame(n)
n |
represents the number of players |
A list with two elements representing the cardinality game (n, Game vector v)
cardinalityGameValue, cardinalityGameVector
Jochen Staudacher jochen.staudacher@hs-kempten.de
Johannes Anwander anwander.johannes@gmail.com
library(CoopGame)
cardinalityGame(n=3)
library(CoopGame)
#Example: Cardinality function for four players
(vv<-cardinalityGame(n=4))
#$n
#[1] 4
#$v
#[1] 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4