public class ProposalSumComputer extends Object
| Constructor and Description |
|---|
ProposalSumComputer() |
| Modifier and Type | Method and Description |
|---|---|
double |
computeInside(Tree<Rule> input,
int state,
RuleWeighting weights)
Computes the proposal probability for the given tree assuming the given
rule weights and assuming that we start at the given state.
|
double |
computeInside(Tree<Rule> input,
RuleWeighting weights)
Computes the proposal probability for the given tree assuming the given
rule weights.
|
void |
fillInsides(TreeSample<Rule> sample,
RuleWeighting rw)
Computes the proposal probability for each tree in the sample assuming the
given rule weightings and sets it as the log sum weight of the sample.
|
void |
reset()
This resets the cache of the inside values.
|
public void fillInsides(TreeSample<Rule> sample, RuleWeighting rw)
sample - rw - public double computeInside(Tree<Rule> input, RuleWeighting weights)
input - weights - public double computeInside(Tree<Rule> input, int state, RuleWeighting weights)
input - state - weights - public void reset()
Copyright © 2017. All rights reserved.