MoTBFs (version 1.2)

integralJointMoTBF: Integral Joint MoTBF

Description

Integrate a "jointmotbf" object over an non defined domain. It is able to get the integral of a joint function over a set of variables or over all the variables of the function.

Usage

integralJointMoTBF(P, var = NULL)

Arguments

P

A "jointmotbf" object.

var

A "character" vector containing the name of the variables where integrating the joint function. Instead the names it can contain the position of the variables. By default it's NULL then all the variables are taken.

Value

A multiintegral of a joint function of class "jointmotbf".

Examples

Run this code
# NOT RUN {
## 1. 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)

## Integral
integralJointMoTBF(P)
integralJointMoTBF(P, var="x")
integralJointMoTBF(P, var="y")

##############################################################################
## MORE EXAMPLES #############################################################
##############################################################################
# }
# NOT RUN {
## Dataset with 3 variables
X <- data.frame(rnorm(50), rnorm(50), rnorm(50))

## Joint function
dim <- c(2,1,3)
param <- parametersJointMoTBF(X, dimensions = dim)
P <- jointMoTBF(param)
 
## Integral
integralJointMoTBF(P)
integralJointMoTBF(P, var="x")
integralJointMoTBF(P, var="y")
integralJointMoTBF(P, var="z")
integralJointMoTBF(P, var=c("x","z"))
# }

Run the code above in your browser using DataCamp Workspace