|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.tumba.ngram.bayes.Expectation
public class Expectation
Field Summary | |
---|---|
protected BayesNet |
bn
|
protected DiscreteFunction |
current_function
|
protected boolean |
do_produce_clusters
|
(package private) static int |
EXPECTED_VALUE
|
(package private) static int |
FOURTH_MOMENT
|
protected Inference |
inference
|
protected double[] |
results
|
(package private) static int |
SECOND_MOMENT
|
(package private) static int |
THIRD_MOMENT
|
Constructor Summary | |
---|---|
Expectation(BayesNet b_n,
boolean dpc)
Constructor for an Expectation. |
Method Summary | |
---|---|
private DiscreteFunction |
construct_values(ProbabilityVariable pv,
int moment_order)
|
protected void |
do_expectation_from_inference(DiscreteFunction df)
|
void |
expectation()
Calculation of Expectation. |
void |
expectation(DiscreteFunction df)
Do the Expectation, assuming the input DiscreteFunction is a function only of the queried variable. |
void |
expectation(DiscreteFunction df,
java.lang.String queried_variable_name)
Do the Expectation, assuming the input DiscreteFunction is a function only of the queried variable. |
void |
expectation(DiscreteFunction df,
java.lang.String[] order)
Do the Expectation given order, assuming the input DiscreteFunction is a function only of the queried variable. |
void |
expectation(int moment_order)
Calculation of Expectation. |
void |
expectation(int moment_order,
java.lang.String queried_variable_name)
Calculation of Expectation. |
void |
expectation(int moment_order,
java.lang.String[] order)
Calculation of expectation given order. |
void |
expectation(java.lang.String queried_variable_name)
Calculation of Expectation. |
void |
expectation(java.lang.String[] order)
Perform calculation of expectation given order. |
double[] |
get_results()
Get the results of Expectation. |
protected void |
initialize_inference()
|
void |
print()
Print Expectation. |
void |
print(boolean should_print_bucket_tree)
Print Expectation. |
void |
print(java.io.PrintStream out)
Print Expectation. |
void |
print(java.io.PrintStream out,
boolean should_print_bucket_tree)
Print Expectation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BayesNet bn
protected Inference inference
protected double[] results
protected boolean do_produce_clusters
protected DiscreteFunction current_function
static final int EXPECTED_VALUE
static final int SECOND_MOMENT
static final int THIRD_MOMENT
static final int FOURTH_MOMENT
Constructor Detail |
---|
public Expectation(BayesNet b_n, boolean dpc)
Method Detail |
---|
protected void initialize_inference()
public void expectation()
public void expectation(java.lang.String queried_variable_name)
public void expectation(java.lang.String[] order)
public void expectation(int moment_order)
public void expectation(int moment_order, java.lang.String queried_variable_name)
public void expectation(int moment_order, java.lang.String[] order)
public void expectation(DiscreteFunction df)
public void expectation(DiscreteFunction df, java.lang.String queried_variable_name)
public void expectation(DiscreteFunction df, java.lang.String[] order)
private DiscreteFunction construct_values(ProbabilityVariable pv, int moment_order)
protected void do_expectation_from_inference(DiscreteFunction df)
public void print()
public void print(java.io.PrintStream out)
public void print(boolean should_print_bucket_tree)
public void print(java.io.PrintStream out, boolean should_print_bucket_tree)
public double[] get_results()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |