Mobius.set.func-class {kappalab} | R Documentation |
Class representing the Möbius transform of a set function.
Objects can be created by calls to the
function Mobius.set.func
.
n
:Object of class numeric
of length 1 containing the
number of elements of the set on which the Möbius transform is
defined.
k
:Object of class numeric
of length 1 containg the order
of truncation of the Möbius transform: subsets whose cardinal is
superior to k are considered to be zero.
subsets
:Object of class numeric
containing
the "k
power set" of the underlying
set in "natural" order . The subsets are encoded as integers.
data
:Object of class numeric
of length
choose(n,0) + ... + choose(n,k)
representing the
coefficients of a truncated Möbius transform of a set function in "natural" order.
Class superclass.set.func
, directly.
signature(object = "Mobius.set.func")
signature(object =
"Mobius.set.func")
signature(object =
"Mobius.set.func")
signature(object = "Mobius.set.func")
signature(object = "Mobius.set.func")
signature(object = "Mobius.set.func")
signature(object = "Mobius.set.func")
signature(object = "Mobius.set.func")
signature(object = "Mobius.set.func", k =
"numeric")
signature(object = "Mobius.set.func")
signature(object = "Mobius.set.func",
k = "numeric")
signature(object = "Mobius.set.func")
signature(object = "Mobius.set.func")
signature(object = "Mobius.set.func")
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
.
## the Mobius 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 Mobius 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 Mobius 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)