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

card.game-classR 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 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.

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)

kappalab documentation built on Nov. 8, 2023, 1:07 a.m.