Learn R Programming

bnstruct (version 1.0.15)

test.updated.bn: check if an updated BN is present in an InferenceEngine.

Description

Check if an InferenceEngine actually contains an updated network, in order to provide the chance of a fallback and use the original network if no belief propagation has been performed. An InferenceEngine built specifying a set of interventions will contain an updated BN with altered structure and no conditional probability tables (unless they are computed by a belief propagation operation.)

Usage

test.updated.bn(x)

# S4 method for InferenceEngine test.updated.bn(x)

Value

TRUE if an updated network is contained in the InferenceEngine, FALSE otherwise.

Arguments

x

an InferenceEngine.