|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.tumba.ngram.bayes.BucketTree
public class BucketTree
Field Summary | |
---|---|
private int |
active_bucket
|
(package private) int[] |
backward_pointers
|
(package private) BayesNet |
bn
|
(package private) Bucket[] |
bucket_tree
|
(package private) boolean |
do_produce_clusters
|
(package private) int |
explanation_status
|
(package private) static int |
MAX_OUT
|
(package private) Ordering |
ordering
|
(package private) static int |
SUM_OUT
|
(package private) DiscreteFunction |
unnormalized_result
|
Constructor Summary | |
---|---|
BucketTree(Ordering ord)
Simple constructor for BucketTree. |
|
BucketTree(Ordering ord,
boolean dpc)
Constructor for BucketTree. |
Method Summary | |
---|---|
private int[] |
backward_maximization()
|
private int |
build_evidence_markers(ProbabilityFunction pf,
boolean[] markers)
|
private void |
check_evidence_loop(ProbabilityFunction new_pf,
ProbabilityFunction pf)
|
private ProbabilityFunction |
check_evidence(ProbabilityFunction pf)
|
boolean |
distribute()
Distribute evidence in the BucketTree. |
ProbabilityFunction |
get_normalized_result()
Get the normalized result for the BucketTree. |
DiscreteFunction |
get_unnormalized_result()
Get the unnormalized_result for the BucketTree. |
private void |
insert(Bucket buck)
|
private void |
insert(DiscreteFunction df)
|
private void |
insert(DiscreteFunction df,
boolean was_first_variable_cancelled_by_evidence)
|
void |
print()
Print method for BucketTree. |
void |
print(java.io.PrintStream out)
Print method for BucketTree. |
void |
reduce()
Variable elimination in the BucketTree. |
private ProbabilityFunction |
transform_to_probability_function(BayesNet bn,
ProbabilityVariable pv)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Bucket[] bucket_tree
BayesNet bn
int[] backward_pointers
DiscreteFunction unnormalized_result
Ordering ordering
int explanation_status
boolean do_produce_clusters
private int active_bucket
static final int MAX_OUT
static final int SUM_OUT
Constructor Detail |
---|
public BucketTree(Ordering ord)
public BucketTree(Ordering ord, boolean dpc)
Method Detail |
---|
private ProbabilityFunction transform_to_probability_function(BayesNet bn, ProbabilityVariable pv)
private ProbabilityFunction check_evidence(ProbabilityFunction pf)
private int build_evidence_markers(ProbabilityFunction pf, boolean[] markers)
private void check_evidence_loop(ProbabilityFunction new_pf, ProbabilityFunction pf)
public void reduce()
public boolean distribute()
private int[] backward_maximization()
private void insert(Bucket buck)
private void insert(DiscreteFunction df)
private void insert(DiscreteFunction df, boolean was_first_variable_cancelled_by_evidence)
public void print()
public void print(java.io.PrintStream out)
public ProbabilityFunction get_normalized_result()
public DiscreteFunction get_unnormalized_result()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |