Learn R Programming

TUGLab (version 0.0.1)

degeneratecheck: Degenerate check

Description

This function checks if the given game is degenerate.

Usage

degeneratecheck(v, binary = FALSE)

Value

TRUE if the game is degenerate, FALSE otherwise.

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.

Details

A game \(v\in G^N\) is degenerate if \(v(N)=\sum_{i \in N} v(i)\).

See Also

essentialcheck

Examples

Run this code
v <- c(1, 5, 10, 0, 0, 0, 16)
degeneratecheck(v)
w <- c(1, 5, 10, 0, 0, 0, 15)
degeneratecheck(w)

Run the code above in your browser using DataLab