Learn R Programming

kappalab (version 0.4-12)

set.func: Create objects of class "set.func", "game", or "capacity".

Description

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

Usage

set.func(object)
game(object)
capacity(object)

Value

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

Arguments

object

An object of class numeric containing the coefficients of the set function in "natural" order. Its length has to be a power of 2.

See Also

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

Examples

Run this code
set.func(-12:3)
game(c(0,rep(-1,15)))
capacity(0:15)

Run the code above in your browser using DataLab