Description Format Value Fields Methods
This is a base class representing a node in a DAG. Is not intended to be used by a regular user. Developers only here!
Object of R6Class with methods for constructing a DAG.
Object of Node
parentsa list of parent nodes
childrena list of child nodes
namea tag name applied to the node
new(parents = list(), children = list(), name)creates a new Node with parent nodes, child nodes, and a name.
logDensity()calculate the log probability density/mass function evaluated at the current node value.
addChild(node)add node as a child. Returns node.
addParent(node)add node as a parent. Returns node.
removeParent(name)remove the parent node named name. Returns node.
removeChild(name)remove the child node named name. Returns node.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.