https://github.com/cran/kappalab
Raw File
Tip revision: 10e850e67333b1ec9de31a1a5b43e758f46cd2a9 authored by Ivan Kojadinovic on 07 December 2007, 00:00:00 UTC
version 0.4-1
Tip revision: 10e850e
card.set.func.gen.Rd
\name{card.set.func}
\alias{card.set.func}
\alias{card.game}
\alias{card.capacity}
\alias{lower.capacity}
\alias{upper.capacity}
\alias{uniform.capacity}

\title{Create objects representing cardinal set functions.}

\description{These functions create objects of class
  \code{card.set.func}, \code{card.game}, or \code{card.capacity}
  from an object of class \code{numeric}.}

\usage{
card.set.func(object)
card.game(object)
card.capacity(object)
lower.capacity(n)
upper.capacity(n)
uniform.capacity(n)
}

\arguments{
  \item{object}{An object of class \code{numeric} containing the
    coefficients of the cardinal set function. The coefficient at
    position \code{k} corresponds to the value of the cardinal set
    function for subsets of size \code{k}.}
  
  \item{n}{An object of class \code{numeric} of length 1 containing
    the cardinal of the set on which the cardinal set function is
    defined.}
}

\value{
Return objects of class \code{card.set.func}, \code{card.game}, or \code{card.capacity}.
}

\seealso{
	\code{\link{card.capacity-class}}, 
	\cr \code{\link{card.game-class}},
	\cr \code{\link{card.set.func-class}}.
}

\examples{
card.set.func(4:-2)
card.game(c(0,-2:2))
card.capacity(0:5)
lower.capacity(3)
upper.capacity(4)
uniform.capacity(5)
}
\keyword{math}
back to top