Description Usage Arguments Value Related Functions Author(s) Examples
View source: R/CardinalityGame.R
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.
1 |
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
1 2 3 4 5 6 7 8 9 10 11 12 | 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.