Learn R Programming

kappalab (version 0.4-12)

rnd-methods: Rounding of set function coefficients

Description

Rounds the coefficients of a set function to the specified number of decimal places (default 0).

Arguments

Methods

x = "superclass.set.func", digits = "numeric"

Returns an object of the same class as x whose data attribute is rounded.

Examples

Run this code
## a capacity
mu <- capacity(0:15/15)
mu
rnd(mu,2)

## a similar example with a Mobius.capacity object
a <- Mobius(mu)
a
rnd(a,1)

## a similar example with a card.capacity object
mu <- uniform.capacity(6)
mu
rnd(mu)

Run the code above in your browser using DataLab