Classes | |
class | BackSamplingDistribution |
Public Member Functions | |
BackwardSamplingWithChildren (BeliefNetworkEx bn) throws Exception | |
SampledDistribution | infer () throws Exception |
void | prepareInference (int[] evidenceDomainIndices) throws Exception |
Protected Member Functions | |
BackSamplingDistribution | getBackSamplingDistribution (BeliefNode node, WeightedSample s) |
Protected Attributes | |
Cache2D< BeliefNode, Long, BackSamplingDistribution > | distCache |
Stopwatch | distSW |
Cache2D< CPF, Integer, Double > | probCache |
Stopwatch | probSW |
a backward sampling algorithm that, to sample the parents of an instantiated node N, considers not only the conditional probability of N given its parents but also the the children of N's parents and their parents (using existing instantiations and, where nodes are yet uninstantiated, the prior probability of the nodes)
Definition at line 23 of file BackwardSamplingWithChildren.java.
edu::tum::cs::bayesnets::inference::BackwardSamplingWithChildren::BackwardSamplingWithChildren | ( | BeliefNetworkEx | bn | ) | throws Exception [inline] |
Definition at line 241 of file BackwardSamplingWithChildren.java.
BackSamplingDistribution edu::tum::cs::bayesnets::inference::BackwardSamplingWithChildren::getBackSamplingDistribution | ( | BeliefNode | node, | |
WeightedSample | s | |||
) | [inline, protected] |
Reimplemented from edu::tum::cs::bayesnets::inference::BackwardSamplingWithPriors.
Definition at line 183 of file BackwardSamplingWithChildren.java.
SampledDistribution edu::tum::cs::bayesnets::inference::BackwardSamplingWithChildren::infer | ( | ) | throws Exception [inline] |
Reimplemented from edu::tum::cs::bayesnets::inference::Sampler.
Definition at line 252 of file BackwardSamplingWithChildren.java.
void edu::tum::cs::bayesnets::inference::BackwardSamplingWithChildren::prepareInference | ( | int[] | evidenceDomainIndices | ) | throws Exception [inline] |
Reimplemented from edu::tum::cs::bayesnets::inference::BackwardSamplingWithPriors.
Definition at line 246 of file BackwardSamplingWithChildren.java.
Cache2D<BeliefNode, Long, BackSamplingDistribution> edu::tum::cs::bayesnets::inference::BackwardSamplingWithChildren::distCache [protected] |
Definition at line 26 of file BackwardSamplingWithChildren.java.
Stopwatch edu::tum::cs::bayesnets::inference::BackwardSamplingWithChildren::distSW [protected] |
Definition at line 27 of file BackwardSamplingWithChildren.java.
Cache2D<CPF, Integer, Double> edu::tum::cs::bayesnets::inference::BackwardSamplingWithChildren::probCache [protected] |
Definition at line 25 of file BackwardSamplingWithChildren.java.
Stopwatch edu::tum::cs::bayesnets::inference::BackwardSamplingWithChildren::probSW [protected] |
Definition at line 27 of file BackwardSamplingWithChildren.java.