Learn R Programming

jti (version 1.0.0)

set_evidence: Enter Evidence

Description

Enter evidence into a the junction tree object that has not been propagated

Usage

set_evidence(x, evidence, initialize_cpts = TRUE)

# S3 method for jt set_evidence(x, evidence, initialize_cpts = FALSE)

# S3 method for charge set_evidence(x, evidence, initialize_cpts = TRUE)

Arguments

x

A junction tree object, jt.

evidence

A named vector. The names are the variabes and the elements are the evidence.

initialize_cpts

TRUE if the CPTs should be initialized and then create the clique potentials. Only relevant on objects returned from compile.

See Also

jt, mpe

Examples

Run this code
# See the 'jt' function

Run the code above in your browser using DataLab