| card.game-class {kappalab} | R Documentation |
Class "card.game"
Description
Class representing a cardinal game, i.e. a game whose values depend only on the cardinality of subsets.
Objects from the Class
Objects can be created by calls to the function card.game.
Slots
n:Object of class
numericof length 1 equal to the number of elements of the set on which the cardinal game is defined.data:Object of class
numericof lengthn+1containing the coefficients of the cardinal game. We necessarily havedata[1]=0.
Extends
Class card.set.func, directly.
Class superclass.set.func, by class card.set.func.
Methods
- as.game
signature(object = "card.game")- Choquet.integral
signature(object = "card.game", f = "numeric")- Sipos.integral
signature(object = "card.game", f = "numeric")- Sugeno.integral
signature(object = "card.game", f = "numeric")
See Also
game-class,
card.game,
as.game-methods,
Choquet.integral-methods,
Sipos.integral-methods,
Sugeno.integral-methods,
Examples
## a cardinal game (which is a capacity)
mu <- card.game(c(0,rep(1,4)))
# the attributes of the object
mu@n
mu@data
## a conversion
as.game(mu)
## integral calculations
f <- c(0.2,0.3,0.1,0.7)
Choquet.integral(mu,f)
Sugeno.integral(mu,f)
f <- c(0.2,-0.3,0.1,-0.7)
Sipos.integral(mu,f)