rawBanzhafValue: Compute raw Banzhaf Value

Description Usage Arguments Value Author(s) References Examples

View source: R/BanzhafConcept.R

Description

raw Banzhaf Value, i.e. the Banzhaf Value without the division by the scaling factor 2^{(n-1)}

Usage

1

Arguments

v

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

Value

The return value is a numeric vector which contains the raw Banzhaf value for each player.

Author(s)

Jochen Staudacher jochen.staudacher@hs-kempten.de

References

Chakravarty S.R., Mitra M. and Sarkar P. (2015) A Course on Cooperative Game Theory, Cambridge University Press, pp. 118–119

Examples

1
2
3
4
5
6
7
8
9
library(CoopGame)
v = c(0,0,0,1,1,2,5)
rawBanzhafValue(v)


library(CoopGame)
v = c(0,0,0,2,2,3,5)
rawBanzhafValue(v)
#[1] 6 8 8

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