getMotbfDim: Extract Dimension of MoTBFs

View source: R/joint.R

getMotbfDimR Documentation

Extract Dimension of MoTBFs

Description

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

Usage

getMotbfDim(P)

Arguments

P

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

Value

Dimension of the function.

See Also

univMoTBF and jointmotbf.fit

Examples

## 1. EXAMPLE 
## Data
X <- rnorm(2000)

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

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

## Joint function
dim <- c(2,3)
P <- jointmotbf.fit(X, dimensions = dim)

## Dimension of the joint function
getMotbfDim(P)


MoTBFs documentation built on Oct. 6, 2026, 1:06 a.m.