https://github.com/cran/kappalab
Raw File
Tip revision: c35c3217a80758cae846a0c1336934ca8aee9b2b authored by Ivan Kojadinovic on 23 September 2006, 00:00:00 UTC
version 0.3-0
Tip revision: c35c321
round-methods.Rd
\name{round-methods}
\docType{methods}
\alias{round-methods}
\alias{round,superclass.set.func-method}

\title{Rounding of set function coefficients}

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

\section{Methods}{
  \describe{
    
\item{x = "superclass.set.func", digits = "numeric" }{Returns an object of the same class as
  \code{x} whose \code{data} attribute is rounded.}
}}

\examples{
## a capacity
mu <- capacity(0:15/15)
mu
round(mu,2)

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

## a similar example with a card.capacity object
mu <- uniform.capacity(6)
mu
round(mu)
}
\keyword{methods}

back to top