Skip to contents

Outputs the normalizing constant given some evidence of a Bayesian network

Usage

sample.subGroupSampling(BayesNet, obs, N_samples = 100, plot = TRUE)

Arguments

BayesNet

Bayesian network

obs

List containing the evidence nodes and associated values

N_samples

Number of samples

plot

If TRUE, plot the progress

Value

Normalizing constant and vector of intermediate results