Pnode-class: Class '"Pnode"'

Pnode-classR Documentation

Class "Pnode"

Description

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.

Objects from the Class

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).

Methods

No methods defined with class "Pnode" in the signature; however, the following generic functions are available:

PnodeName

signature(node = "Pnode"): Fetches node name.

PnodeName<-

signature(node = "Pnode", value="character"): Sets node name.

PnodeTitle

signature(node = "Pnode"): Fetches node title.

PnodeTitle<-

signature(node = "Pnode", value="character"): Sets node title.

PnodeDescription

signature(node = "Pnode"): Fetches documentation string for node.

PnodeDescription<-

signature(node = "Pnode", value="character"): Sets documentation string for node.

PnodeLabels

signature(node = "Pnode"): Fetches a vector of lables assigned to this node.

PnodeLabels<-

signature(node = "Pnode", value = "character"): Sets vector of labels assigned to this node. hub model.

PnodeNumStates

signature(node = "Pnode"): Fetches length of vector of states available for this node.

PnodeStates

signature(node = "Pnode"): Fetches vector of states available for this node.

PnodeStates<-

signature(node = "Pnode", value): Sets vector of states for this node.

PnodeStateTitles

signature(node = "Pnode"): Fetches vector of states available for this node.

PnodeStateTitles<-

signature(node = "Pnode", value): Sets vector of states for this node.

PnodeStateDescriptions

signature(node = "Pnode"): Fetches vector of states available for this node.

PnodeStateDescriptions<-

signature(node = "Pnode", value): Sets vector of states for this node.

PnodeStateValues

signature(node = "Pnode"): Fetches vector of numeric values associated with states for this node.

PnodeStateValues<-

signature(node = "Pnode", value): Sets vector of numeric values associated with states for this node.

PnodeStateBounds

signature(node = "Pnode"): Fetches matrix of upper and lower bounds for discritized states of a continuous node.

PnodeStateBounds<-

signature(node = "Pnode", value): Sets matrix of upper and lower bounds for discritized states of a continuous node.

PnodeParents

signature(node = "Pnode"): Fetches a list of the nodes parents.

PnodeParents<-

signature(node = "Pnode", value = "list"): Sets a list of the nodes parents.

PnodeParentNames

signature(node = "Pnode"): Lists the names of the parents.

PnodeNumParents

signature(node = "Pnode"): The length of the parent vector.

isPnodeContinuous

signature(node = "Pnode"): Copies nodes from hub model into spoke model.

PnodeProbs

signature(node = "Pnode"): Fetchs the conditional probability table for the node.

PnodeProbs<-

signature(node = "Pnode", value = "array"): Sets the conditional probability table for the node.

PnodeEvidence

signature(node = "Pnode"): Fetches the current instantiated evidence for this node.

PnodeEvidence<-

signature(node = "Pnode", value): Sets the instantiated evidence for this node.

PnodeMargin

signature(node = "Pnode"): Computes the vector of marginal beliefs associated with the state of this node given the evidence.

PnodeEAP

signature(node = "Pnode"): Computes the expected value of a node given the evidence. This assumes node states are assigned numeric values.

PnodeSD

signature(node = "Pnode"): Computes the standard deviation of a node given the evidence. This assumes node states are assigned numeric values.

PnodeMedian

signature(node = "Pnode"): Computes the median of a node given the evidence. This assumes node states are ordered.

PnodeMedian

signature(node = "Pnode"): Computes the most likely state of a node given the evidence.

Author(s)

Russell Almond

See Also

Pnode.

The class NeticaNode implements this protocol.

Examples

showClass("Pnode")
## Not run: 
 setIs("NeticaNode","Pnode")

## End(Not run)

ralmond/Peanut documentation built on Sept. 19, 2023, 8:27 a.m.