BayesianInferences
Class Expectation
java.lang.Object
|
+--BayesianInferences.Expectation
- public class Expectation
- extends java.lang.Object
Method Summary |
protected void |
do_expectation_from_inference(DiscreteFunction df)
|
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,
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_result()
Get the results of Expectation. |
protected void |
initialize_inference()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
bn
protected BayesNet bn
inference
protected Inference inference
result
protected double result
do_produce_clusters
protected boolean do_produce_clusters
current_function
protected DiscreteFunction current_function
Expectation
public Expectation(BayesNet b_n,
boolean dpc)
- Constructor for an Expectation.
initialize_inference
protected void initialize_inference()
expectation
public void expectation(java.lang.String queried_variable_name)
- Calculation of Expectation.
expectation
public void expectation(java.lang.String[] order)
- Perform calculation of expectation given order.
expectation
public void expectation(int moment_order,
java.lang.String queried_variable_name)
- Calculation of Expectation.
expectation
public void expectation(int moment_order,
java.lang.String[] order)
- Calculation of expectation given order.
expectation
public 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.
expectation
public 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.
do_expectation_from_inference
protected void do_expectation_from_inference(DiscreteFunction df)
get_result
public double get_result()
- Get the results of Expectation.