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

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
4
marginals(x, ...)

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

Arguments

x

an InferenceEngine

...

potential further arguments of methods.

Value

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

Examples

1
2
3
4
5
## Not run: 
eng <- InferenceEngine(net)
marginals(eng)

## End(Not run)

tavazzie/bnstructScore documentation built on Dec. 23, 2021, 7:47 a.m.