Class Discrete Variable Node. More...
#include <FgDiscreteVariableNode.h>


Public Member Functions | |
| DiscreteVariableNode (std::string name, int numStates) | |
| Constructor. More... | |
| ~DiscreteVariableNode () | |
| Destructor. More... | |
| virtual bool | IsSupported (MsgType type) |
| Query if message type is supported. More... | |
| bool | IsLeafNode () |
| Query if this object is leaf node. More... | |
| virtual af::array & | Marginal (MsgBox &neededMessages) |
| Marginal propability of the node. More... | |
Public Member Functions inherited from NeuralEngine::MachineLearning::IVariableNode | |
| IVariableNode (std::string name, int numStates) | |
| Constructor. More... | |
| ~IVariableNode () | |
| Destructor. More... | |
| int | NumStates () |
| Gets the dimension of the node. More... | |
| virtual bool | IsSupported (MsgType type)=0 |
| Query if message type is supported. More... | |
Public Member Functions inherited from NeuralEngine::MachineLearning::INode | |
| INode (std::string name) | |
| Default constructor. More... | |
| ~INode () | |
| Destructor. More... | |
| std::string | Name () |
| Gets the name. More... | |
| virtual void | SendMsg (std::string toNodeName) |
| Sends a message. More... | |
| virtual void | ReceiveMsg (std::string fromNodeName, IMessage &message) |
| Receives a message. More... | |
| virtual void | AddIncoming (INode *node) |
| Adds ingoing connection to the node. More... | |
| virtual void | AddOutgoing (INode *node) |
| Adds outgoing connection to the node. More... | |
| virtual void | AddConnection (INode *node, const std::string &tag) |
| Adds a custom connection with the given tag. More... | |
| virtual bool | IsSupported (MsgType type)=0 |
| Query if message type is supported. More... | |
| const MsgBox & | GetAllMessages () const |
| Gets all the messages of this node. More... | |
| void | ClearMessages () |
| Clears all incomming messages for next iteration. More... | |
Protected Member Functions | |
| virtual IMessage | ComputeMessage (std::string toNodeName, MsgBox &neededMessages) |
| Custom message computation for specific node. More... | |
| virtual IMessage | ComputeMessage (std::string toNodeName, MsgBox &neededMessages)=0 |
| Calculate a message to connectd node. More... | |
Protected Member Functions inherited from NeuralEngine::MachineLearning::INode | |
| void | SetMessage (std::string fromNodeName, IMessage &msg) |
| Sets a incomming message from specific node. More... | |
| virtual IMessage | ComputeMessage (std::string fromNodeName, MsgBox &neededMessages)=0 |
| Virtual function to calculate a message to connectd node. More... | |
Private Member Functions | |
| template<class Archive > | |
| void | serialize (Archive &ar, unsigned int version) |
Friends | |
| class | boost::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from NeuralEngine::MachineLearning::INode | |
| std::map< std::string, INode * > | mNodes |
| MsgBox | mMessageBox |
| std::set< std::string > | sIncomming |
| std::set< std::string > | sOutgoing |
| std::map< std::string, std::string > | mConnections |
Class Discrete Variable Node.
Basic functionalities of a Node in a Factor Graph.
Admin, 7/24/2017.
Definition at line 29 of file FgDiscreteVariableNode.h.
| NeuralEngine::MachineLearning::DiscreteVariableNode::DiscreteVariableNode | ( | std::string | name, |
| int | numStates | ||
| ) |
Constructor.
Hmetal T, 09.08.2017.
| name | The name. |
| ID | The identifier. |
| numStates | Number of states. |
| NeuralEngine::MachineLearning::DiscreteVariableNode::~DiscreteVariableNode | ( | ) |
Destructor.
Admin, 7/24/2017.
|
virtual |
Query if message type is supported.
Admin, 7/25/2017.
| type | The message type. |
Implements NeuralEngine::MachineLearning::IVariableNode.
| bool NeuralEngine::MachineLearning::DiscreteVariableNode::IsLeafNode | ( | ) |
Query if this object is leaf node.
Hmetal T, 07.08.2017.
|
virtual |
Marginal propability of the node.
Hmetal T, 07.08.2017.
| neededMessages | [in,out] The needed messages. |
|
protectedvirtual |
Custom message computation for specific node.
Admin, 8/15/2017.
| toNodeName | Identifier for receiver node. |
| neededMessages | All incomming messages, exept from receiver node. |
Implements NeuralEngine::MachineLearning::IVariableNode.
|
inlineprivate |
Definition at line 99 of file FgDiscreteVariableNode.h.
|
friend |
Definition at line 96 of file FgDiscreteVariableNode.h.