cardinalityGame {CoopGame} | R Documentation |
Construct a cardinality game
Description
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.
Usage
cardinalityGame(n)
Arguments
n |
represents the number of players |
Value
A list with two elements representing the cardinality game (n, Game vector v)
Related Functions
cardinalityGameValue, cardinalityGameVector
Author(s)
Jochen Staudacher jochen.staudacher@hs-kempten.de
Johannes Anwander anwander.johannes@gmail.com
Examples
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
[Package CoopGame version 0.2.2 Index]