DeleteNodeTable {RNetica}R Documentation

Deletes the conditional probability table of a Netica node.

Description

This function completely removes the conditional probability table (CPT) associated with a node.

Usage

DeleteNodeTable(node)

Arguments

node

An active NeticaNode whose conditional probability table is to be tested.

Value

Returns the modified node invisibly.

Author(s)

Russell Almond

References

http://norsys.com/onLineAPIManual/index.html: DeleteNodeTables_bn()

See Also

NeticaNode, NodeParents(), NodeInputNames(), HasNodeTable()

Examples

sess <- NeticaSession()
startSession(sess)

a1 <- CreateNetwork("AB1", session=sess)
A <- NewDiscreteNode(a1,"A",c("A1","A2"))

NodeProbs(A) <- c(0,1)
stopifnot(
  all(HasNodeTable(A))==TRUE
)

DeleteNodeTable(A)
stopifnot(
  all(HasNodeTable(A))==FALSE
)

DeleteNetwork(a1)
stopSession(sess)

[Package RNetica version 0.7-3 Index]