getNumberOfPlayers: Get number of players

Description Usage Arguments Value Author(s) Examples

View source: R/GameVector.R

Description

Gets the number of players from a game vector

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

Number of players in the game (specified by game vector v)

Author(s)

Michael Maerz

Jochen Staudacher jochen.staudacher@hs-kempten.de

Examples

1
2
3
library(CoopGame)
maschlerGame=c(0,0,0,60,60,60,72)
getNumberOfPlayers(maschlerGame)

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