queryBN | R Documentation |
Performs inference in a Bayesian network model, which can be output from
buildWeatherGenerator()
, buildPredictive()
and buildDescriptive()
.
queryBN(
evidence,
dbn,
evidence.nodes,
predictands,
type = "exact",
which_ = "marginal",
resample.size = 10000,
cl = NULL
)
evidence |
An evidence vector. |
dbn |
A Bayesian network model, as output by |
evidence.nodes |
Names of the nodes for which evidence will be provided.
Must have the same length as |
predictands |
Nodes queried. |
type |
Inference type. Either |
which_ |
Probabilities to return. Used only for exact inference. |
resample.size |
Number of samples for the likelihood weighting approximate inference method. |
cl |
A cluster object from |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.