test.traits: Test a constructed node has the expected traits

Description Usage Arguments Value

Description

Test a constructed node has the expected traits

Usage

1
2
test.traits(node, params, degree, pindices.jumptable, pvals, parents, index,
  vals)

Arguments

node

the constructed node.

params

a matrix giving the expected parameters for the node.

degree

a numeric giving the expected degrees of freedom of the node

pindices.jumptable

a vector giving the expected parent indices, jump table or pmap of the mode, depending on node type.

pvals

a vector giving the expected number of values for each parent of the node

parents

a vector giving the indices of the parents of the node

index

an integer giving the expected index of the node

vals

a vector giving the expected values of the node

Value

vector of boolean values indicating whether above match actual traits


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