Classes | |
class | BeliefMessageContainer |
Public Member Functions | |
BeliefPropagation (BeliefNetworkEx bn) throws Exception | |
void | computeLambda (BeliefNode n) |
void | computePi (BeliefNode n, int[] nodeDomainIndices) |
String | getAlgorithmName () |
Protected Member Functions | |
SampledDistribution | _infer () throws Exception |
void | computePi (BeliefNode n, Vector< Integer > varsToSumOver, int i, int[] nodeDomainIndices, MutableDouble sum) |
Protected Attributes | |
HashMap< BeliefNode, double[]> | lambda |
HashMap< BeliefNode, BeliefMessageContainer > | messages |
BeliefNode[] | nodes |
HashMap< BeliefNode, double[]> | pi |
HashMap< BeliefNode, double[]> | priors |
int[] | topOrder |
(iterative/loopy) belief propagation
Definition at line 14 of file BeliefPropagation.java.
edu::tum::cs::bayesnets::inference::BeliefPropagation::BeliefPropagation | ( | BeliefNetworkEx | bn | ) | throws Exception [inline] |
Definition at line 215 of file BeliefPropagation.java.
SampledDistribution edu::tum::cs::bayesnets::inference::BeliefPropagation::_infer | ( | ) | throws Exception [inline, protected, virtual] |
Implements edu::tum::cs::bayesnets::inference::Sampler.
Definition at line 231 of file BeliefPropagation.java.
void edu::tum::cs::bayesnets::inference::BeliefPropagation::computeLambda | ( | BeliefNode | n | ) | [inline] |
Definition at line 196 of file BeliefPropagation.java.
void edu::tum::cs::bayesnets::inference::BeliefPropagation::computePi | ( | BeliefNode | n, | |
Vector< Integer > | varsToSumOver, | |||
int | i, | |||
int[] | nodeDomainIndices, | |||
MutableDouble | sum | |||
) | [inline, protected] |
Definition at line 179 of file BeliefPropagation.java.
void edu::tum::cs::bayesnets::inference::BeliefPropagation::computePi | ( | BeliefNode | n, | |
int[] | nodeDomainIndices | |||
) | [inline] |
Definition at line 154 of file BeliefPropagation.java.
String edu::tum::cs::bayesnets::inference::BeliefPropagation::getAlgorithmName | ( | ) | [inline] |
Reimplemented from edu::tum::cs::bayesnets::inference::Sampler.
Definition at line 226 of file BeliefPropagation.java.
HashMap<BeliefNode,double[]> edu::tum::cs::bayesnets::inference::BeliefPropagation::lambda [protected] |
Definition at line 18 of file BeliefPropagation.java.
HashMap<BeliefNode, BeliefMessageContainer> edu::tum::cs::bayesnets::inference::BeliefPropagation::messages [protected] |
Definition at line 20 of file BeliefPropagation.java.
BeliefNode [] edu::tum::cs::bayesnets::inference::BeliefPropagation::nodes [protected] |
Reimplemented from edu::tum::cs::bayesnets::inference::Sampler.
Definition at line 16 of file BeliefPropagation.java.
HashMap<BeliefNode,double[]> edu::tum::cs::bayesnets::inference::BeliefPropagation::pi [protected] |
Definition at line 19 of file BeliefPropagation.java.
HashMap<BeliefNode,double[]> edu::tum::cs::bayesnets::inference::BeliefPropagation::priors [protected] |
Definition at line 21 of file BeliefPropagation.java.
int [] edu::tum::cs::bayesnets::inference::BeliefPropagation::topOrder [protected] |
Definition at line 17 of file BeliefPropagation.java.