Last chance! 50% off unlimited learning
Sale ends in
Given multiple games with two, three or four players, this function draws in a single plot their projected core sets and sets of imputations.
plotcoresets(games, binary = FALSE, imputations = TRUE)
A plot of the given core sets.
A matrix in which each row is a characteristic function.
A logical value. By default, binary=FALSE
. Should be set to TRUE
if the characteristic functions in games
are introduced in binary order instead of lexicographic order.
A logical value. By default, imputations=TRUE
.
When set to imputations=FALSE
, the sets of imputations are not drawn.
The core of a game
plotcoreset
# Plotting the core and the least core of a game:
v <- c(0,0,0,0,10,40,30,60,10,20,90,90,90,130,160)
vt <- leastcore(v)$vt
plotcoresets(games = rbind(v,vt), imputations = FALSE)
Run the code above in your browser using DataLab