Learn R Programming

kappalab (version 0.4-12)

card.set.func: 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)

Value

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

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.

See Also

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

Examples

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

Run the code above in your browser using DataLab