getkCover: Compute k-cover of game

Description Usage Arguments Value Author(s) References Examples

View source: R/getkCover.R

Description

getkCover returns the k-cover for a given TU game according to the formula on p. 173 in the book by Driessen. Note that the k-cover does not exist if condition (7.2) on p. 173 in the book by Driessen is not satisfied.

Usage

1
getkCover(v, k)

Arguments

v

Numeric vector of length 2^n - 1 representing the values of the coalitions of a TU game with n players

k

An integer specifying k in the k-cover

Value

numeric vector containing the k-cover of the given game if the k-cover exists, NULL otherwise

Author(s)

Jochen Staudacher jochen.staudacher@hs-kempten.de

References

Driessen T. (1998) Cooperative Games, Solutions and Applications, Springer, p. 173

Examples

1
2
3
4
5
6
7
8
9
library(CoopGame)
getkCover(c(0,0,0,9,9,12,18),k=1)


library(CoopGame)
#Example from textbook by Driessen, p. 175, with alpha = 0.6 and k = 2
alpha = 0.6
getkCover(c(0,0,0,alpha,alpha,0,1), k=2)
#[1] 0.0 0.0 0.0 0.6 0.6 0.0 1.0

CoopGame documentation built on May 2, 2019, 5:57 a.m.