Learn R Programming

kappalab (version 0.4-0)

card.game-class: Class "card.game"

Description

Class representing a cardinal game, i.e. a game whose values depend only on the cardinality of subsets.

Arguments

Objects from the Class

Objects can be created by calls to the function card.game.

Extends

Class card.set.func, directly. Class superclass.set.func, by class card.set.func.

See Also

game-class, card.game, as.game-methods, Choquet.integral-methods, Sipos.integral-methods, Sugeno.integral-methods,

Examples

Run this code
## 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)

Run the code above in your browser using DataLab