View source: R/sampling-methods.R
approxInference | R Documentation |
Outputs the normalizing constant given some evidence of a Bayesian network
approxInference( BayesNet, obs, s_method = "SGS", N_samples = 100, relevantSubNet = FALSE, plot = TRUE, returnList = FALSE )
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 |
Normalizing constant and vector of intermediate results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.