sampleBN: Draw a 'random' BN.

Description Usage Arguments Value See Also Examples

View source: R/sample.R

Description

Generates a BN, by choosing an order, then sampling a BN that respects that order

Usage

1
  sampleBN(n, maxNumberParents = NULL)

Arguments

n

The number of nodes for the Bayesian network. An integer.

maxNumberParents

The maximum indegree of the network

Value

A new bn.

See Also

An alternative sampleBN2

Examples

1
2
3
sampleBN(5)
sampleBN(10)
sampleBN(10, 2)

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.