Description Usage Arguments Value
View source: R/infer_bayesnet.R
Perform sampling
1 | performSampling(algo, net, evidence, num, algoSpecific = NULL)
|
algo |
A string specifying a valid algorithm. "IS" = Importance sampling. "BS" = Backwards sampling "SU" = Selected uniform sampling "MC" = MCMC sampling |
net |
the network |
evidence |
vector of integers specifying known values of nodes. This can include NA values for unknown variables. |
num |
integer specifying the number of samples to used in inference |
algoSpecific |
An algorithm specific object: For importance sampling, this should specify "nat" or "aux" depending on whether auxiliary variables should be sampled, or only the natural variables. |
The generated samples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.