Description Usage Arguments Details Value Examples
(bn) In case of a numcat node, provides its conditional probability table as defined in the bn. The number of dimensions of the array is one plus the number of the node parents. The order of the node parents is not modified and the position number of the child node is given by pos.
1 | bn2pta(bn, ion, pos=2)
|
bn |
the bn. |
ion |
identification of the node. This node must be a numcat node. |
pos |
index position for the child node. When there are no parents, this argument is forced to one. |
Remenber that the order in @npara\$p corresponds to pos with the greatest value.
the resulting pta object
1 2 3 4 5 6 7 | rebastaba3k("RESET"); # (only for R checking)
uu <- and4bn(rebastaba.bn1, new8alk(char2des("NC1"), ltype="numcat",
lpara=list(p=1:4), lpod=list(LETTERS[1:4])))
uu <- and4bn(uu, new8alk(char2des("NC2"), ltype="numcat", lparent="NC1",
lpara=list(p=matrix(1:12, 4)), lpod=list(letters[1:3])))
print(bn2pta(uu, "NC1"));
print(bn2pta(uu, "NC2"));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.