extracts a bn from a bn (way number 1)

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"));

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.