rnd-methods {kappalab}R Documentation

Rounding of set function coefficients

Description

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

Methods

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

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

Examples

## 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)

[Package kappalab version 0.4-12 Index]