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

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

List of all members.

Classes

class  BackSamplingDistribution
class  TierComparator

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

Vector< BeliefNode > backwardSampledNodes
int currentStep
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 24 of file BackwardSampling.java.


Constructor & Destructor Documentation

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

Definition at line 92 of file BackwardSampling.java.


Member Function Documentation

SampledDistribution edu::tum::cs::bayesnets::inference::BackwardSampling::_infer (  )  throws Exception [inline, virtual]
BackSamplingDistribution edu::tum::cs::bayesnets::inference::BackwardSampling::getBackSamplingDistribution ( BeliefNode  node,
WeightedSample  s 
) [inline, protected]
void edu::tum::cs::bayesnets::inference::BackwardSampling::getOrdering ( int[]  evidenceDomainIndices  )  throws Exception [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 
Exceptions:
Exception 

Reimplemented in edu::tum::cs::bayesnets::inference::SATIS_BSampler.

Definition at line 119 of file BackwardSampling.java.

void edu::tum::cs::bayesnets::inference::BackwardSampling::getSample ( WeightedSample  s  )  throws Exception [inline]

gets one full sample of all of the nodes

Parameters:
s 
Exceptions:
Exception 

Definition at line 239 of file BackwardSampling.java.

void edu::tum::cs::bayesnets::inference::BackwardSampling::initSample ( WeightedSample  s  )  throws Exception [inline]

Reimplemented in edu::tum::cs::bayesnets::inference::SATIS_BSampler.

Definition at line 303 of file BackwardSampling.java.

void edu::tum::cs::bayesnets::inference::BackwardSampling::onAddedSample ( WeightedSample  s  )  throws Exception [inline, protected]
void edu::tum::cs::bayesnets::inference::BackwardSampling::prepareInference ( int[]  evidenceDomainIndices  )  throws Exception [inline, protected]
boolean edu::tum::cs::bayesnets::inference::BackwardSampling::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 170 of file BackwardSampling.java.

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

Definition at line 308 of file BackwardSampling.java.


Member Data Documentation

Definition at line 26 of file BackwardSampling.java.

Definition at line 29 of file BackwardSampling.java.

Definition at line 27 of file BackwardSampling.java.

Definition at line 28 of file BackwardSampling.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:37 2013