Sampler: Sampling from the Bayesian network

Description Usage Arguments Value Author(s) References Examples

View source: R/E7_Sampler.R

Description

Sampling from the joint distribution of all applicable nodes in the Bayesian network.

Usage

1
Sampler(tree, n)

Arguments

tree

a ClusterTree object

n

a integer number of observations to generate

Value

a dataframe of generated data

Author(s)

Han Yu

References

Cowell, R. G. (2005). Local propagation in conditional Gaussian Bayesian networks. Journal of Machine Learning Research, 6(Sep), 1517-1550.

Examples

1
2
data(toytree)
Sampler(tree = toytree, n = 10)

Yam76/BayesNetBP documentation built on Aug. 23, 2019, 1:23 a.m.