motbf_type {MoTBFs} | R 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)
[Package MoTBFs version 1.4.1 Index]