bn2bn: extracts a bn from a bn (way number 1)

Description Usage Arguments Value Examples

Description

(bn) A new bn is generated from the initial bn reduced to the targetted nodes indicated in 'ion' and the parents of these nodes. Independent uniform distributions are given to the parents AND AT THE SAME TIME THEIR OWN RELATIONSHIPS ARE DELETED. For some argument about this practice, see the DETAILS section of function study8nd.
To give an example, the graph (A->B; A->C; B->C) will result into (A->C; B->C) if (C) is the targetted node.

Usage

1
bn2bn(bn, ion)

Arguments

bn

The original bn.

ion

The definition of the nodes (iin or name vector)

Value

The resulting bn

Examples

1
2
 rebastaba3k("RESET"); # (only for R checking)
 print(bn2bn(rebastaba.bn2, "A"));

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

Related to bn2bn in rebastaba...