50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


TUGLab (version 0.0.1)

normalizedgame: Normalized game

Description

Given a game, this function returns the characteristic function of its 0-1-normalization, its 0-(-1) normalization or its 0-0 normalization, as appropriate.

Usage

normalizedgame(v, binary = FALSE)

Value

The characteristic function of the 0-1-normalized game, the 0-(-1) normalized game or the 0-0 normalized game; as a vector in binary order if binary=TRUE and in lexicographic order 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 vGN is: 0-1 normalized if v(i)=0 for all iN and v(N)=1; 0-0 normalized if v(i)=0 for all iN and v(N)=0; and 0-(-1) normalized if v(i)=0 for all iN and v(N)=1.

If v(N)>iNv(i), the 0-1 normalized game of v, v0,1GN, is defined by v0,1(S)=v(S)iSv(i)v(N)iNv(i) for all S2N.

If v(N)<iNv(i), the 0-(-1) normalized game of v, v0,1GN, is defined by v0,1(S)=v(S)iSv(i)v(N)iNv(i) for all S2N.

If v(N)=iNv(i), the 0-0 normalized game of v, v0,0GN, is defined by v0,0(S)=v(S)iSv(i) for all S2N.

See Also

strategicallyequivalentcheck, zeronormalizedcheck, zeronormalizedgame

Examples

Run this code
v <- c(1, 5, 11, 6, 11, 15, 16)
normalizedgame(v, binary = TRUE)
w <- c(4, 3, 8, 16, 17, 18, 15)
normalizedgame(w)
z <- c(2,3,5,10,12,14,5)
normalizedgame(z)

Run the code above in your browser using DataLab