set_evidence {jti}R Documentation

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 class 'jt'
set_evidence(x, evidence, initialize_cpts = FALSE)

## S3 method for class '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

# See the 'jt' function

[Package jti version 0.8.4 Index]