Public Member Functions | |
void | applyWeight (WeightedSample s, int sampledValue) |
BackSamplingDistribution (BackwardSamplingWithPriors sampler) | |
Public Attributes | |
Vector< Double > | parentProbs |
Protected Member Functions | |
void | construct (int i, int[] addr, CPF cpf, int[] nodeDomainIndices) |
Definition at line 16 of file BackwardSamplingWithPriors.java.
edu::tum::cs::bayesnets::inference::BackwardSamplingWithPriors::BackSamplingDistribution::BackSamplingDistribution | ( | BackwardSamplingWithPriors | sampler | ) | [inline] |
void edu::tum::cs::bayesnets::inference::BackwardSamplingWithPriors::BackSamplingDistribution::applyWeight | ( | WeightedSample | s, | |
int | sampledValue | |||
) | [inline] |
Reimplemented from edu::tum::cs::bayesnets::inference::BackwardSampling::BackSamplingDistribution.
Definition at line 63 of file BackwardSamplingWithPriors.java.
void edu::tum::cs::bayesnets::inference::BackwardSamplingWithPriors::BackSamplingDistribution::construct | ( | int | i, | |
int[] | addr, | |||
CPF | cpf, | |||
int[] | nodeDomainIndices | |||
) | [inline, protected] |
recursively gets a distribution to backward sample from (represented in probs; the corresponding node states stored in states)
i | the node to instantiate next (as an index into the CPF's domain product) | |
addr | the current setting of node indices of the CPF's domain product | |
cpf | the conditional probability function of the node we are backward sampling |
Reimplemented from edu::tum::cs::bayesnets::inference::BackwardSampling::BackSamplingDistribution.
Reimplemented in edu::tum::cs::bayesnets::inference::BackwardSamplingWithChildren::BackSamplingDistribution, and edu::tum::cs::srl::bayesnets::inference::LiftedBackwardSampling::Sampler::BackSamplingDistribution.
Definition at line 32 of file BackwardSamplingWithPriors.java.
Vector<Double> edu::tum::cs::bayesnets::inference::BackwardSamplingWithPriors::BackSamplingDistribution::parentProbs |
Definition at line 18 of file BackwardSamplingWithPriors.java.