motbf_type: Type of MoTBF

View source: R/Inference.R

motbf_typeR Documentation

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


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

MoTBFs documentation built on April 18, 2022, 5:06 p.m.

Related to motbf_type in MoTBFs...