derivMTE: Derivating MTEs

View source: R/mte.R

derivMTER Documentation

Derivating MTEs

Description

Compute the derivative of an "motbf" object with 'mte' subclass.

Usage

derivMTE(fx)

Arguments

fx

An "motbf" object of the 'mte' subclass.

Value

The derivative which is also an "motbf" function.

See Also

univMoTBF for learning and derivMoTBF for general "motbf" models.

Examples


## 1. EXAMPLE
X <- rexp(1000)
Px <- univMoTBF(X, POTENTIAL_TYPE="MTE")
derivMTE(Px)

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

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

## End(Not run)

MoTBFs documentation built on April 18, 2022, 5:06 p.m.

Related to derivMTE in MoTBFs...