dimensionFunction {MoTBFs}R Documentation

Dimension of MoTBFs

Description

Get the dimension of "motbf" and "jointmotbf" densities.

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

## 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)


[Package MoTBFs version 1.4.1 Index]