unitCube_max-class: An S4 class to represent the function \max(x_1,...,x_n) on...

unitCube_max-classR Documentation

An S4 class to represent the function \max(x_1,\ldots,x_n) on [0,1]^n

Description

Implementation of the function

f \colon [0,1]^n \to [0,n],\, \vec{x} \mapsto f(\vec{x}) = \max(x_1,\ldots,x_n)

, where n \in \{1,2,3,\ldots\} is the dimension of the integration domain C_n = [0,1]^n. The integral is known to be

\int_{C_n} f(\vec{x}) d\vec{x} = \frac{n}{n+1}.

Details

The instance needs to be created with one parameter representing the dimension n.

Slots

dim

An integer that captures the dimension

Author(s)

Klaus Herrmann

Examples

n <- as.integer(3)
f <- new("unitCube_max",dim=n)

multIntTestFunc documentation built on Sept. 11, 2024, 5:18 p.m.