MoTBFs (version 1.2)

motbf_type: Type of MoTBF

Description

This function checks whether the density functions of a MoTBF-BN are of type MTE or MOP.

Usage

motbf_type(bn)

Arguments

bn

A list of lists obtained from the function MoTBFs_Learning.

Value

A character string, specifying the subclass of MoTBF, i.e., either MTE or MOP.

Examples

Run this code
# NOT RUN {
## Dataset
  data("ecoli", package = "MoTBFs")
  data <- ecoli[,-c(1,9)]

## Get directed acyclic graph
  dag <- LearningHC(data)
  
## Learn bayesian network
  bn <- MoTBFs_Learning(dag, data = data, numIntervals = 4, POTENTIAL_TYPE = "MTE") 
  
## Get MoTBF sub-class
  motbf_type(bn)
# }

Run the code above in your browser using DataLab