Learn R Programming

TUGLab (version 0.0.1)

additivegame: 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)

Value

The characteristic function of the associated additive game, as a vector in binary order if binary=TRUE and in lexicographic order otherwise.

Arguments

a

A vector containing the player values.

binary

A logical value. By default, binary=FALSE.

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\).

See Also

additivecheck, strategicallyequivalentcheck, superadditivecheck

Examples

Run this code
a <- c(1,5,10,13,58)
additivegame(a, binary = FALSE)

Run the code above in your browser using DataLab