derivMoTBF: Derivating MoTBFs

View source: R/motbf.R

derivMoTBFR Documentation

Derivating MoTBFs

Description

Compute the derivative of a one-dimensional mixture of truncated basis function.

Usage

derivMoTBF(fx)

Arguments

fx

An object of class "motbf".

Value

The derivative of the MoTBF function, which is also an object of class "motbf".

See Also

univMoTBF, derivMOP and derivMTE

Examples


## 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."

## End(Not run)

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

Related to derivMoTBF in MoTBFs...