Base Class INode.
More...
#include <FgDiscreteFactorNode.h>
|
template<class Archive > |
void | serialize (Archive &ar, unsigned int version) |
|
Base Class INode.
Basic functionalities of a Node in a Factor Graph.
Admin, 7/24/2017.
Definition at line 31 of file FgDiscreteFactorNode.h.
◆ DiscreteFactorNode() [1/4]
NeuralEngine::MachineLearning::DiscreteFactorNode::DiscreteFactorNode |
( |
DiscreteVariableNode & |
node, |
|
|
std::string |
name |
|
) |
| |
Default constructor.
Admin, 7/24/2017.
- Parameters
-
node | The corresponding variable node. |
name | The name. |
ID | The identifier. |
◆ DiscreteFactorNode() [2/4]
NeuralEngine::MachineLearning::DiscreteFactorNode::DiscreteFactorNode |
( |
DiscreteVariableNode & |
node | ) |
|
Constructor.
Hmetal T, 11.08.2017.
- Parameters
-
node | The corresponding variable node. |
ID | The identifier. |
◆ DiscreteFactorNode() [3/4]
NeuralEngine::MachineLearning::DiscreteFactorNode::DiscreteFactorNode |
( |
std::vector< DiscreteVariableNode * > |
nodes, |
|
|
std::string |
name |
|
) |
| |
Constructor.
Admin, 8/31/2017.
- Parameters
-
nodes | [in,out] If non-null, the corresponding variable nodes. |
name | The name of the node. |
◆ DiscreteFactorNode() [4/4]
NeuralEngine::MachineLearning::DiscreteFactorNode::DiscreteFactorNode |
( |
std::vector< DiscreteVariableNode * > |
nodes | ) |
|
Constructor.
Admin, 8/31/2017.
- Parameters
-
nodes | [in,out] If non-null, the corresponding variable nodes. |
◆ ~DiscreteFactorNode()
NeuralEngine::MachineLearning::DiscreteFactorNode::~DiscreteFactorNode |
( |
| ) |
|
Destructor.
Admin, 7/24/2017.
◆ IsSupported()
virtual bool NeuralEngine::MachineLearning::DiscreteFactorNode::IsSupported |
( |
MsgType |
type | ) |
|
|
virtual |
◆ SetPotential()
void NeuralEngine::MachineLearning::DiscreteFactorNode::SetPotential |
( |
double |
potential, |
|
|
int |
index |
|
) |
| |
Sets a potential at given index.
Admin, 8/31/2017.
- Parameters
-
potential | The potential. |
index | Zero-based index of the potential. |
◆ AddPotential()
void NeuralEngine::MachineLearning::DiscreteFactorNode::AddPotential |
( |
double |
potential | ) |
|
Adds a potential.
Admin, 8/31/2017.
- Parameters
-
◆ GetPotential()
double NeuralEngine::MachineLearning::DiscreteFactorNode::GetPotential |
( |
int |
index | ) |
|
Gets a potential.
Admin, 8/31/2017.
- Parameters
-
index | Zero-based index of the. |
- Returns
- The potential.
◆ ComputeMessage()
virtual IMessage NeuralEngine::MachineLearning::DiscreteFactorNode::ComputeMessage |
( |
std::string |
toNodeName, |
|
|
MsgBox & |
neededMessages |
|
) |
| |
|
protectedvirtual |
Calculate a message to connectd node.
Different computations for all kinds of derived classes of node types.
Admin, 7/26/2017.
- Parameters
-
toNodeName | Identifier for receiver node. |
neededMessages | All incomming messages, exept from receiver node. |
- Returns
- The calculated message.
Implements NeuralEngine::MachineLearning::IFactorNode.
◆ serialize()
template<class Archive >
void NeuralEngine::MachineLearning::DiscreteFactorNode::serialize |
( |
Archive & |
ar, |
|
|
unsigned int |
version |
|
) |
| |
|
inlineprivate |
◆ boost::serialization::access
friend class boost::serialization::access |
|
friend |
◆ vP
std::vector<double> NeuralEngine::MachineLearning::DiscreteFactorNode::vP |
|
private |
The documentation for this class was generated from the following file: