Pnode-class | R Documentation |
"Pnode"
This is a virtual class. Classes implementing the Pnet protocol
should attach themselves using setIs
.
Note that NULL
is always considered a member so that
uninitialized in containers.
A virtual Class: No objects may be created from it.
Classes can register as belonging to this abstract class. The trick
for doing this is:
setIs("NodeClass","Pnode")
Currently NeticaNode
is an example of an object
of this class (but requires the PNetica
package to provide all
of the required functionality).
No methods defined with class "Pnode" in the signature; however, the following generic functions are available:
signature(node = "Pnode")
: Fetches node name.
signature(node = "Pnode", value="character")
:
Sets node name.
signature(node = "Pnode")
: Fetches node title.
signature(node = "Pnode",
value="character")
: Sets node title.
signature(node = "Pnode")
: Fetches
documentation string for node.
signature(node = "Pnode",
value="character")
: Sets documentation string for node.
signature(node = "Pnode")
: Fetches a
vector of lables assigned to this node.
signature(node = "Pnode", value =
"character")
: Sets vector of labels assigned to this node.
hub model.
signature(node = "Pnode")
: Fetches
length of vector of states available for this node.
signature(node = "Pnode")
: Fetches vector
of states available for this node.
signature(node = "Pnode", value)
: Sets
vector of states for this node.
signature(node = "Pnode")
: Fetches vector
of states available for this node.
signature(node = "Pnode", value)
: Sets
vector of states for this node.
signature(node = "Pnode")
: Fetches vector
of states available for this node.
signature(node = "Pnode",
value)
: Sets vector of states for this node.
signature(node = "Pnode")
: Fetches vector
of numeric values associated with states for this node.
signature(node = "Pnode", value)
: Sets
vector of numeric values associated with states for this node.
signature(node = "Pnode")
: Fetches
matrix of upper and lower bounds for discritized states of a
continuous node.
signature(node = "Pnode",
value)
: Sets matrix of upper and lower bounds for discritized
states of a continuous node.
signature(node = "Pnode")
: Fetches a
list of the nodes parents.
signature(node = "Pnode", value =
"list")
: Sets a list of the nodes parents.
signature(node = "Pnode")
: Lists the
names of the parents.
signature(node = "Pnode")
: The length
of the parent vector.
signature(node = "Pnode")
: Copies nodes from hub model into spoke model.
signature(node = "Pnode")
: Fetchs the
conditional probability table for the node.
signature(node = "Pnode", value =
"array")
: Sets the conditional probability table for the node.
signature(node = "Pnode")
: Fetches the
current instantiated evidence for this node.
signature(node = "Pnode", value)
: Sets
the instantiated evidence for this node.
signature(node = "Pnode")
: Computes the vector
of marginal beliefs associated with the state of this node given the
evidence.
signature(node = "Pnode")
: Computes the
expected value of a node given the evidence. This assumes node
states are assigned numeric values.
signature(node = "Pnode")
: Computes the
standard deviation of a node given the evidence. This assumes node
states are assigned numeric values.
signature(node = "Pnode")
: Computes the
median of a node given the evidence. This assumes node
states are ordered.
signature(node = "Pnode")
: Computes the
most likely state of a node given the evidence.
Russell Almond
Pnode
.
The class NeticaNode
implements this protocol.
showClass("Pnode")
## Not run:
setIs("NeticaNode","Pnode")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.