![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Class used to perform Function Graph projections. More...
#include <agrum/base/multidim/patterns/multiDimFunctionGraphProjector.h>
Public Member Functions | |
Constructors / Destructors | |
| MultiDimFunctionGraphProjector (const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > *src, const gum::VariableSet &delVars, const GUM_SCALAR neutral) | |
| Default constructor. | |
| ~MultiDimFunctionGraphProjector () | |
| Default destructor. | |
Main Method | |
| MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * | project () |
| Computes and builds the Function Graph that is the result of the Projection. | |
Private Attributes | |
| const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * | _src_ |
| One of the two function graphs used for the Projection. | |
| const gum::VariableSet & | _delVars_ |
| The list of variables on which the projection is performed. | |
| MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * | _rd_ |
| The resulting function graph. | |
| const FUNCTOR< GUM_SCALAR > | _function_ |
| The function to be performed on the leaves. | |
| const GUM_SCALAR | _neutral_ |
| The function to be performed on the leaves. | |
Class used to perform Function Graph projections.
Definition at line 73 of file multiDimFunctionGraphProjector.h.
| gum::MultiDimFunctionGraphProjector< GUM_SCALAR, FUNCTOR, TerminalNodePolicy >::MultiDimFunctionGraphProjector | ( | const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * | src, |
| const gum::VariableSet & | delVars, | ||
| const GUM_SCALAR | neutral ) |
Default constructor.
Definition at line 62 of file multiDimFunctionGraphProjector_tpl.h.
References MultiDimFunctionGraphProjector(), _delVars_, _function_, _neutral_, _rd_, _src_, and gum::MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy >::getReducedAndOrderedInstance().
Referenced by MultiDimFunctionGraphProjector(), and ~MultiDimFunctionGraphProjector().
| gum::MultiDimFunctionGraphProjector< GUM_SCALAR, FUNCTOR, TerminalNodePolicy >::~MultiDimFunctionGraphProjector | ( | ) |
Default destructor.
Definition at line 76 of file multiDimFunctionGraphProjector_tpl.h.
References MultiDimFunctionGraphProjector().
| MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * gum::MultiDimFunctionGraphProjector< GUM_SCALAR, FUNCTOR, TerminalNodePolicy >::project | ( | ) |
Computes and builds the Function Graph that is the result of the Projection.
Definition at line 87 of file multiDimFunctionGraphProjector_tpl.h.
References _delVars_, _function_, _neutral_, _rd_, _src_, gum::DiscreteVariable::domainSize(), gum::HashTable< Key, Val >::exists(), gum::HashTable< Key, Val >::insert(), gum::InternalNode::nodeVar(), and gum::InternalNode::son().
|
private |
The list of variables on which the projection is performed.
Definition at line 112 of file multiDimFunctionGraphProjector.h.
Referenced by MultiDimFunctionGraphProjector(), and project().
|
private |
The function to be performed on the leaves.
Definition at line 118 of file multiDimFunctionGraphProjector.h.
Referenced by MultiDimFunctionGraphProjector(), and project().
|
private |
The function to be performed on the leaves.
Definition at line 121 of file multiDimFunctionGraphProjector.h.
Referenced by MultiDimFunctionGraphProjector(), and project().
|
private |
The resulting function graph.
Definition at line 115 of file multiDimFunctionGraphProjector.h.
Referenced by MultiDimFunctionGraphProjector(), and project().
|
private |
One of the two function graphs used for the Projection.
Definition at line 109 of file multiDimFunctionGraphProjector.h.
Referenced by MultiDimFunctionGraphProjector(), and project().