MoTBFs (version 1.2)

integralMOP: Integral MOP

Description

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

Usage

integralMOP(fx)

Arguments

fx

An "motbf" object of subclass 'mop'.

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="MOP")
integralMOP(Px)

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

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

Run the code above in your browser using DataCamp Workspace