performSampling: Perform sampling

Description Usage Arguments Value

View source: R/infer_bayesnet.R

Description

Perform sampling

Usage

1
performSampling(algo, net, evidence, num, algoSpecific = NULL)

Arguments

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.

Value

The generated samples


mickash/Adaptive-Bayesian-Networks documentation built on Nov. 14, 2019, 12:14 a.m.