Learn R Programming

kappalab (version 0.4-0)

Mobius.set.func-class: Class "Mobius.set.func"

Description

Class representing the M�bius{Mobius} transform of a set function.

Arguments

Objects from the Class

Objects can be created by calls to the function Mobius.set.func.

Extends

Class superclass.set.func, directly.

See Also

set.func-class, Mobius.set.func, as.Mobius.card.set.func-methods, as.card.set.func-methods, as.set.func-methods, as.Mobius.game-methods, as.Mobius.capacity-methods, interaction.indices-methods, is.cardinal-methods, is.kadditive-methods, is.monotone-methods, k.truncate.Mobius-methods, Shapley.value-methods, to.data.frame-methods, zeta-methods.

Examples

Run this code
## the M�bius transform of a set function directly
a <- Mobius.set.func(1:16,4,4)

## the attributes of the object
a@n
a@k
a@data
a@subsets

## a set function
mu <- set.func(7:-8)
## and its M�bius transform
a <- Mobius(mu)

## some conversions that cannot work
## as.game(a)
## as.capacity(a)
## as.card.set.func(a)

## some tests
is.cardinal(a)
is.kadditive(a,2)
is.monotone(a)

## some transformations
zeta(a)
k.truncate.Mobius(a,2)

## summary 
Shapley.value(a)
interaction.indices(a)
# the same
summary(a)

## save the M�bius transform to a file
d <- to.data.frame(a)
write.table(d,"my.Mobius.set.func.csv",sep="t")

# finally, some conversions that should work
mu <- set.func(c(0,1,1,1,2,2,2,3))
a <- Mobius(mu)
as.Mobius.game(a)
as.Mobius.capacity(a)
as.Mobius.card.set.func(a)

Run the code above in your browser using DataLab