card.game-class | R Documentation |
Class representing a cardinal game, i.e. a game whose values depend only on the cardinality of subsets.
Objects can be created by calls to the function card.game
.
n
:Object of class numeric
of length 1 equal
to the number of elements of the set on which the cardinal game is defined.
data
:Object of class numeric
of length
n+1
containing the coefficients of the cardinal game. We necessarily have
data[1]=0
.
Class card.set.func
, directly.
Class superclass.set.func
, by class card.set.func
.
signature(object = "card.game")
signature(object = "card.game", f = "numeric")
signature(object = "card.game", f = "numeric")
signature(object = "card.game", f = "numeric")
game-class
,
card.game
,
as.game-methods
,
Choquet.integral-methods
,
Sipos.integral-methods
,
Sugeno.integral-methods
,
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.