MoTBFs (version 1.4.1)

Subclass-MoTBF: Subclass "motbf" Functions

Description

Collection of functions for detecting the subclass of an "motbf" object. It can be "mop" or "mte".

Usage

is.mte(fx)

is.mop(fx)

subclass(fx)

Arguments

fx

A function of the class "motbf".

Value

is.mte and is.mop return a logical value, TRUE if it is an "motbf" object of the subclass "mte" or "mop", respectly; or FALSE otherwise. subclass returns a "character" string, "mte" or "mop".

See Also

univMoTBF

Examples

Run this code
# NOT RUN {
## MOP Function
X <- rnorm(1000)
P <- univMoTBF(X, POTENTIAL_TYPE="MOP")
is.mop(P)
subclass(P)

## MTE Function
X <- rchisq(1000, df=4)
P <- univMoTBF(X, POTENTIAL_TYPE="MTE")
is.mte(P)
subclass(P)
# }

Run the code above in your browser using DataLab