anode4bn: very simplified version of and4bn

Description Usage Arguments Details Value Examples

Description

(bn) In this simplified version of and4bn, the user has no more than giving the name and the parents of the node. The distribution will be automatically put to 'Dirac' and the parameter value as the sum of the parents which cannot comprise more than a variable.

Usage

1
anode4bn(bn, des, parent=character(0))

Arguments

bn

bn object to which a node has to be added

des

either the name (character(1) or a description (/des/).

parent

Character vector with the names of the parents. character(0) means there is no parents.

Details

Behind, a standard call to and4bn is made

Value

an object of class "bn" with one additional node.

Examples

1
2
3
 rebastaba3k("RESET"); # (only for R checking)
 print(anode4bn(rebastaba.bn2, "sup"));
 print(anode4bn(rebastaba.bn2, "sup", c("A", "B[b]")));

rebastaba documentation built on May 2, 2019, 5:24 p.m.