rnd-methods: Rounding of set function coefficients

rnd-methodsR 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)

kappalab documentation built on Nov. 8, 2023, 1:07 a.m.