Class-MoTBF {MoTBFs}R Documentation

Class "motbf"

Description

Defines an object of class "motbf" and other basis functions for manipulating "motbf" objects.

Usage

motbf(x = 0)

## S3 method for class 'motbf'
print(x, ...)

## S3 method for class 'motbf'
as.character(x, ...)

## S3 method for class 'motbf'
as.list(x, ...)

is.motbf(x, class = "motbf")

Arguments

x

Preferably, a list containing, an 'mte' or 'mop' univariate expression and other posibles elements like a "numeric" vector with the domain of the variable, the number of iterations needed to solve the optimization problem, among others. Any R object can be entered, but the utility of this function is not to transform objects of other classes into objects of class "motbf".

class

By default is "motbf".

...

Additional arguments, not needed for these methods.

See Also

asMOPString and asMTEString

Examples

## Subclass 'MOP'
param <- c(1,2,3,4,5)
MOPString <- asMOPString(param)
fMOP <- motbf(MOPString)
print(fMOP) ## fMOP
as.character(fMOP)
as.list(fMOP)
is(fMOP) 
is.motbf(fMOP)

## Subclass 'MTE'
param <- c(6,7,8,9,10)
MTEString <- asMTEString(param)
fMTE <- motbf(MTEString)
print(fMTE) ## MTE
as.character(fMTE)
as.list(fMTE)
is(fMTE) 
is.motbf(fMTE)

[Package MoTBFs version 1.2 Index]