addNode: Add node to network

Description Usage Arguments Value

Description

Adds a new node of to the network. NOTE: RESULTS WILL BE CLEARED. If you want to have access to past results you must copy and store them elsewhere before calling this function. NOTE: ADDING A NODE CAN RESULT IN A NEW DATA TABLE BEING CREATED.

Usage

1
2
addNode(net, type, values, name, parents, params, params2 = NULL,
  miscString = NULL, cn = NULL, deepUpdate = F, dropImages = F)

Arguments

net

the current network

type

string specifying type of node to add. Valid values are: 'noisyor', 'dirichlet', 'logand', 'logor', logprod', 'flag', and 'flagprod'.

values

vector of strings specifying the names of the values of the node. Note that all nodes must have at least two values, and noisy-or and logical-and type nodes can only have two values.

name

string specifying the name of the node.

parents

vector of integers specifying the indices of the parents of node. Note that logical-and nodes must have exactly two parents.

params

matrix specifying parameters of node.

params2

matrix specifying secondary parameters of node.

miscString

a string specifying additional settings. Currently used only for multinomial noisy-or nodes, in which case it should be 'T' if the secondary parameters matrix should be adaptable, and 'F' otherwise.

cn

A RODBC connection. Required if performing deep update.

deepUpdate

Specifies whether a deep update should be performed.

dropImages

Specifies if images should be dropped on a deepUpdate.

Value

new Bayesian network with node added.


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