Learn R Programming

TUGLab (version 0.0.1)

zeronormalizedcheck: 0-normalized check

Description

This function checks if the given game is 0-normalized.

Usage

zeronormalizedcheck(v, binary = FALSE, instance = FALSE)

Value

TRUE if the game is 0-normalized, FALSE otherwise. If instance=TRUE and the game is not 0-normalized, the function also returns a player for whose value is not zero.

Arguments

v

A characteristic function, as a vector.

binary

A logical value. By default, binary=FALSE. Should be set to TRUE if v is introduced in binary order instead of lexicographic order.

instance

A logical value. By default, instance=FALSE.

Details

A game \(v\in G^N\) is 0-normalized if \(v(i)=0\) for all \(i\in N\).

See Also

normalizedgame, strategicallyequivalentcheck, zeromonotoniccheck, zeronormalizedgame

Examples

Run this code
v <- c(rep(0, 4), 1, rep(30, 20), rep(3, 5), 50) # v(5)=1
zeronormalizedcheck(v, binary = FALSE, instance = TRUE)

Run the code above in your browser using DataLab