motbf_type | R Documentation |
This function checks whether the density functions of a MoTBF-BN are of type MTE or MOP.
motbf_type(bn)
bn |
A list of lists obtained from the function MoTBFs_Learning. |
A character string, specifying the subclass of MoTBF, i.e., either MTE or MOP.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.