additivecheck {TUGLab} | R Documentation |
Additive check
Description
This function checks if the given game is additive.
Usage
additivecheck(v, binary = FALSE, instance = FALSE)
Arguments
v |
A characteristic function, as a vector. |
binary |
A logical value. By default, |
instance |
A logical value. By default, |
Details
A game v\in G^N
is additive if v(S)=\sum_{i\in S}v(i)
for all S\in 2^N
.
Value
TRUE
if the game defined by v
is additive, FALSE
otherwise. If instance=TRUE
and the game is not additive, the position (binary order position if binary=TRUE
; lexicographic order position otherwise) of a coalition for which additivity is violated is also returned.
See Also
additivegame, superadditivecheck
Examples
v <- c(1, 5, 40, 100, 6, 41, 101, 45, 105, 140, 46, 106, 141, 145, 146)
additivecheck(v)
additivecheck(v, binary = TRUE, instance = TRUE)
[Package TUGLab version 0.0.1 Index]