card.set.func.gen: Create objects representing cardinal set functions.

card.set.funcR Documentation

Create objects representing cardinal set functions.

Description

These functions create objects of class card.set.func, card.game, or card.capacity from an object of class numeric.

Usage

card.set.func(object)
card.game(object)
card.capacity(object)
lower.capacity(n)
upper.capacity(n)
uniform.capacity(n)

Arguments

object

An object of class numeric containing the coefficients of the cardinal set function. The coefficient at position k corresponds to the value of the cardinal set function for subsets of size k.

n

An object of class numeric of length 1 containing the cardinal of the set on which the cardinal set function is defined.

Value

Return objects of class card.set.func, card.game, or card.capacity.

See Also

card.capacity-class,
card.game-class,
card.set.func-class.

Examples

card.set.func(4:-2)
card.game(c(0,-2:2))
card.capacity(0:5)
lower.capacity(3)
upper.capacity(4)
uniform.capacity(5)

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