golib  0.5
goFGEdge< T, Tfloat > Class Template Reference

Edge class for goFactorGraph. More...

#include <gofactorgraph.h>

Public Types

typedef goMath::Vector< Tfloat > MessageType
 

Public Member Functions

 goFGEdge (goFGNode< T, Tfloat > *n1=0, goFGNode< T, Tfloat > *n2=0)
 
MessageTypegetInMsg (const goFGNode< T, Tfloat > *askingNode)
 Get message coming in to askingNode. More...
 
MessageTypegetOutMsg (const goFGNode< T, Tfloat > *askingNode)
 Get message going out from askingNode. More...
 
MessageTypegetMsg12 ()
 
MessageTypegetMsg21 ()
 
- Public Member Functions inherited from goGraphEdge< goFGNode< T, Tfloat > >
void setNodes (goFGNode< T, Tfloat > *n1, goFGNode< T, Tfloat > *n2)
 
goFGNode< T, Tfloat > * getOtherNode (const goFGNode< T, Tfloat > *askingNode)
 
goIndex_t getIndex (const goFGNode< T, Tfloat > *askingNode)
 Get index of this edge in adj array. More...
 
void setIndex (goIndex_t i1, goIndex_t i2)
 Set index of this edge in adj elements of nodes. More...
 

Additional Inherited Members

- Protected Member Functions inherited from goGraphEdge< goFGNode< T, Tfloat > >
 goGraphEdge (goFGNode< T, Tfloat > *n1=0, goFGNode< T, Tfloat > *n2=0)
 
- Protected Attributes inherited from goGraphEdge< goFGNode< T, Tfloat > >
goFGNode< T, Tfloat > * myNode1
 
goFGNode< T, Tfloat > * myNode2
 
goIndex_t myIndex1
 
goIndex_t myIndex2
 

Detailed Description

template<class T, class Tfloat>
class goFGEdge< T, Tfloat >

Edge class for goFactorGraph.

Member Function Documentation

◆ getInMsg()

template<class T, class Tfloat>
MessageType& goFGEdge< T, Tfloat >::getInMsg ( const goFGNode< T, Tfloat > *  askingNode)
inline

Get message coming in to askingNode.

Parameters
askingNodeMust be one of the nodes this edge is connected to.
Returns
The incoming message for askingNode.

◆ getOutMsg()

template<class T, class Tfloat>
MessageType& goFGEdge< T, Tfloat >::getOutMsg ( const goFGNode< T, Tfloat > *  askingNode)
inline

Get message going out from askingNode.

Parameters
askingNodeMust be one of the nodes this edge is connected to.
Returns
The outgoing message from askingNode.

The documentation for this class was generated from the following file: