set_evidence: Enter Evidence

View source: R/helper_set_evidence.R

set_evidenceR 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

jti documentation built on April 12, 2022, 9:05 a.m.