MoTBFs (version 1.2)

dimensionFunction: Dimension of Functions

Description

Gets the dimension of "motbf" and "jointmotbf" functions.

Usage

dimensionFunction(P)

Arguments

P

An object of class "motbf" and subclass 'mop' or "jointmotbf".

Value

Dimension of the function.

See Also

univMoTBF and jointMoTBF

Examples

Run this code
# NOT RUN {
## 1. EXAMPLE 
## Data
X <- rnorm(2000)

## Univariate function
subclass <- "MOP"
f <- univMoTBF(X, POTENTIAL_TYPE = subclass)
dimensionFunction(f)

## 2. EXAMPLE 
## Dataset with 2 variables
X <- data.frame(rnorm(100), rnorm(100))

## Joint function
dim <- c(2,3)
param <- parametersJointMoTBF(X, dimensions = dim)
P <- jointMoTBF(param)

## Dimension of the joint function
dimensionFunction(P)

# }

Run the code above in your browser using DataCamp Workspace