|NORSYS SOFTWARE © 2012||NETICA API||C   VERSION   5.04 |
|double GetNodeExpectedValue_bn (||node_bn* node, double* std_dev, double* x3, double* x4 )|
Returns the expected real value of node, based on the current beliefs for node, and if std_dev is non-NULL, *std_dev will be set to the standard deviation. Returns UNDEF_DBL if the expected value couldn't be calculated.
Pass NULL (i.e., 0) for arguments x3 and x4; they are there for future expansion.
node must be continuous discretized, or must be discrete with a levels list defined to supply real values.
For continuous discretized nodes it assumes the belief for each state is distributed evenly over each discretized interval. Because of that, it can't handle infinite tails (returns UNDEF_DBL).
This function is not for expected utility; for that see GetNodeExpectedUtils_bn.
|GetNodeBeliefs_bn||Returns beliefs for each state individually|
|GetNodeExpectedUtils_bn||For expected utility, rather than expected real value|