additivegame {TUGLab} | R Documentation |
Additive game
Description
Given the value of each player, this function returns the characteristic function of the associated additive game.
Usage
additivegame(a, binary = FALSE)
Arguments
a |
A vector containing the player values. |
binary |
A logical value. By default, |
Details
The characteristic function of the additive game given by a\in \mathbb{R}^n
is defined for each S\in 2^N
by v(S)=\sum_{i\in S}a_i
.
Value
The characteristic function of the associated additive game, as a vector in binary order if binary=TRUE
and in lexicographic order otherwise.
See Also
additivecheck, strategicallyequivalentcheck, superadditivecheck
Examples
a <- c(1,5,10,13,58)
additivegame(a, binary = FALSE)
[Package TUGLab version 0.0.1 Index]