Learn R Programming

bnstruct (version 1.0.15)

marginals: compute the list of inferred marginals of a BN.

Description

Given an InferenceEngine, it returns a list containing the marginals for the variables in the network, according to the propagated beliefs.

Usage

marginals(x, ...)

# S4 method for InferenceEngine marginals(x, ...)

Value

a list containing the marginals of each variable, as probability tables.

Arguments

x

an InferenceEngine

...

potential further arguments of methods.

Examples

Run this code
if (FALSE) {
eng <- InferenceEngine(net)
marginals(eng)
}

Run the code above in your browser using DataLab