Learn R Programming

kappalab (version 0.4-12)

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

Description

Virtual class, superclass of all *.set.func classes. Used to define common show and summary methods for *.set.func classes.

Arguments

Objects from the Class

A virtual Class: No objects may be created from it.

Slots

n:

Object of class numeric of length 1 equal to the number of elements of the set on which the set function is defined.

data:

Object of class numeric containing the coefficients of the set function.

Methods

show

signature(object = "superclass.set.func")

rnd

signature(x = "superclass.set.func", digits = "numeric")

summary

signature(object = "superclass.set.func")

See Also

show-methods,
rnd-methods,
summary-methods,
set.func-class,
Mobius.set.func-class,
card.set.func-class,
Mobius.card.set.func-class.

Examples

Run this code
## three set functions
mu1 <- card.set.func(-2:4)
mu2 <- set.func(c(-2,-2,-2:11/11))
mu3 <- Mobius.set.func(c(-7:6,6,6),4,4)

## print mu1
show(mu1)
## the same
mu1
## the others
mu2
mu3

## round mu2
rnd(mu2,2)

## compute indices to summarize them
summary(mu1)
summary(mu2)
summary(mu3)

Run the code above in your browser using DataLab