edu::tum::cs::bayesnets::inference::JointBackwardSampling Class Reference

Inheritance diagram for edu::tum::cs::bayesnets::inference::JointBackwardSampling:
Inheritance graph
[legend]

List of all members.

Classes

class  BackSamplingDistribution

Public Member Functions

SampledDistribution _infer () throws Exception
void getSample (WeightedSample s)
 JointBackwardSampling (BeliefNetworkEx bn) throws Exception

Protected Member Functions

BackSamplingDistribution getBackSamplingDistribution (BeliefNode node, WeightedSample s)
void getOrdering (int[] evidenceDomainIndices)
void prepareInference (int[] evidenceDomainIndices)
boolean sampleBackward (BeliefNode node, WeightedSample s)
boolean sampleForward (BeliefNode node, WeightedSample s)

Package Attributes

Vector< BeliefNode > backwardSampledNodes
int[] evidenceDomainIndices
Vector< BeliefNode > forwardSampledNodes
HashSet< BeliefNode > outsideSamplingOrder

Detailed Description

an implementation of the backward simulation algorithm as described by Robert Fung and Brendan Del Favero in "Backward Simulation in Bayesian Networks" (UAI 1994)

Author:
jain

Definition at line 21 of file JointBackwardSampling.java.


Constructor & Destructor Documentation

edu::tum::cs::bayesnets::inference::JointBackwardSampling::JointBackwardSampling ( BeliefNetworkEx  bn  )  throws Exception [inline]

Definition at line 89 of file JointBackwardSampling.java.


Member Function Documentation

SampledDistribution edu::tum::cs::bayesnets::inference::JointBackwardSampling::_infer (  )  throws Exception [inline, virtual]
BackSamplingDistribution edu::tum::cs::bayesnets::inference::JointBackwardSampling::getBackSamplingDistribution ( BeliefNode  node,
WeightedSample  s 
) [inline, protected]

Definition at line 171 of file JointBackwardSampling.java.

void edu::tum::cs::bayesnets::inference::JointBackwardSampling::getOrdering ( int[]  evidenceDomainIndices  )  [inline, protected]

gets the sampling order by filling the members for backward and forward sampled nodes as well as the set of nodes not in the sampling order

Parameters:
evidenceDomainIndices 

Definition at line 97 of file JointBackwardSampling.java.

void edu::tum::cs::bayesnets::inference::JointBackwardSampling::getSample ( WeightedSample  s  )  [inline]

gets one full sample of all of the nodes

Parameters:
s 

Definition at line 213 of file JointBackwardSampling.java.

void edu::tum::cs::bayesnets::inference::JointBackwardSampling::prepareInference ( int[]  evidenceDomainIndices  )  [inline, protected]

Definition at line 177 of file JointBackwardSampling.java.

boolean edu::tum::cs::bayesnets::inference::JointBackwardSampling::sampleBackward ( BeliefNode  node,
WeightedSample  s 
) [inline, protected]

samples backward from the given node, instantiating its parents

Parameters:
node 
s the sample to store the instantiation information in; the weight is also updated with the normalizing constant that is obtained
Returns:
true if sampling succeeded, false otherwise

Definition at line 148 of file JointBackwardSampling.java.

boolean edu::tum::cs::bayesnets::inference::JointBackwardSampling::sampleForward ( BeliefNode  node,
WeightedSample  s 
) [inline, protected]

Definition at line 251 of file JointBackwardSampling.java.


Member Data Documentation

Definition at line 23 of file JointBackwardSampling.java.

Reimplemented from edu::tum::cs::bayesnets::inference::Sampler.

Definition at line 26 of file JointBackwardSampling.java.

Definition at line 24 of file JointBackwardSampling.java.

Definition at line 25 of file JointBackwardSampling.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations


srldb
Author(s): Dominik Jain, Stefan Waldherr, Moritz Tenorth
autogenerated on Fri Jan 11 09:58:38 2013