Skip to contents

Outputs the normalizing constant given some evidence of a Bayesian network

Usage

approxInference(
  BayesNet,
  obs,
  s_method = "SGS",
  N_samples = 100,
  relevantSubNet = FALSE,
  plot = TRUE,
  returnList = FALSE
)

Arguments

BayesNet

Bayesian network

obs

List containing the evidence nodes and associated values

s_method

Inference method

N_samples

Number of samples

relevantSubNet

Whether to consider the relevant subnet

plot

If TRUE, plot results

returnList

If TRUE, return detailed list of intermediate results

Value

Normalizing constant and vector of intermediate results