MoTBFs (version 1.2)

integralMTE: Integral MTE

Description

Method to calculate the non-defined integral of an "motbf" object of 'mte' subclass.

Usage

integralMTE(fx)

Arguments

fx

An "motbf" object of subclass 'mte'.

Value

The non-defined integral of the function.

See Also

univMoTBF for learning and integralMoTBF for a more complete function to get defined and non-defined integrals of class "motbf".

Examples

Run this code
# NOT RUN {
## 1. EXAMPLE
X <- rexp(1000)
Px <- univMoTBF(X, POTENTIAL_TYPE="MTE")
integralMTE(Px)

## 2. EXAMPLE
X <- rnorm(1000)
Px <- univMoTBF(X, POTENTIAL_TYPE="MTE")
integralMTE(Px)

# }
# NOT RUN {
## 3. EXAMPLE
X <- rnorm(1000)
Px <- univMoTBF(X, POTENTIAL_TYPE="MOP")
integralMTE(Px)
## Error in integralMTE(Px): fx is an 'motbf' function but not 'mte' subclass.
class(Px)
subclass(Px)
# }

Run the code above in your browser using DataLab