cardinalityGame: Construct a cardinality game

Description Usage Arguments Value Related Functions Author(s) Examples

View source: R/CardinalityGame.R

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

1

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

 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

CoopGame documentation built on Aug. 24, 2021, 1:07 a.m.