MoTBFs (version 1.2)

derivMoTBF: Derivative MoTBF

Description

Compute derivatives of "motbf" objects.

Usage

derivMoTBF(fx)

Arguments

fx

An object of "motbf" class.

Value

The derivative which is also an "motbf" function.

See Also

univMoTBF, derivMOP and derivMTE

Examples

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

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

## 3. EXAMPLE
X <- rchisq(1000, df = 3)
Px <- univMoTBF(X, POTENTIAL_TYPE="MTE")
derivMoTBF(Px)

# }
# NOT RUN {
## 4. EXAMPLE
Px <- "x+2"
class(Px)
derivMoTBF(Px)
## Error in derivMoTBF(Px): "fx is not an 'motbf' function."
# }

Run the code above in your browser using DataCamp Workspace