next up previous contents index
Next: Random number generators Up: [B/D] operands and operators Previous: Accessing eigenvalue results

Accessing belief inputs

Element expectations
 
tex2html_wrap_inline33790 tex2html_wrap_inline33790 Usage

tex2html_wrap_inline33806 tex2html_wrap_inline33806

The first form of the usage returns the expectation of the element tex2html_wrap_inline34952 , with the expectation taken from the current default expectation store. The second form of the usage returns the expectation for the element N with the expectation taken explicitly from expectation store S.

If N is not a built element, then the list of functionally specified expectations is searched to determine (and return if present) whether an expectation has been specified functionally via the FE:  command.

Notice that you must be careful when using the first form in defining a function, as the default expectation store may be changed (by you) between definition of the function and evaluation of it. The default expectation store here means the default expectation store at the time of evaluation; this might be different to the default at the time of definition. We recommend that you only use the second form when defining functions.  

Correlations between elements
 
tex2html_wrap_inline33790 tex2html_wrap_inline33790 Usage

  • corr  operator; two or three arguments I, tex2html_wrap_inline35788 , and optionally tex2html_wrap_inline35608 in parenthesis and separated by commas. I is an integer representing a valid belief store, and tex2html_wrap_inline35788 and tex2html_wrap_inline35608 are the names of elements.

tex2html_wrap_inline33806 tex2html_wrap_inline33806

This is used to return a belief input from belief store I in correlation form. For example, tex2html_wrap_inline44178 returns the correlation between the elements tex2html_wrap_inline35788 and tex2html_wrap_inline35608 in belief store 1. The abbreviated form (allowed only to preserve compatibility with the related operator var ) with only one argument will always return a value of unity.

Correlations declared implicitly via the FVAR:  command may also be accessed using this operator: the built store of names is searched firstly, and the virtual store secondly. For such usage, use of the correlation form assumes that you have made all necessary definitions. For example, use of tex2html_wrap_inline44184 implies that all the necessary quantities [x with x], [y with y] and [x with y] have been specified beforehand using the FVAR:  command. An error will occur otherwise. Note that for both operators var  and corr , the built store of names is searched firstly, and the virtual store secondly. Note also that the beliefs involved are not checked for coherence. Under these circumstances, reported correlations greater than unity are feasible.  

Variances and covariances between elements
 


tex2html_wrap_inline33790 tex2html_wrap_inline33790 Usage

  • var  operator; two or three arguments I, tex2html_wrap_inline35788 , and optionally tex2html_wrap_inline35608 in parenthesis and separated by commas. I is an integer representing a valid belief store, and tex2html_wrap_inline35788 and tex2html_wrap_inline35608 are the names of elements.
  • var  operator; one or two arguments tex2html_wrap_inline35788 , and optionally tex2html_wrap_inline35608 in parenthesis and separated by commas. tex2html_wrap_inline35788 and tex2html_wrap_inline35608 are the names of elements.

tex2html_wrap_inline33806 tex2html_wrap_inline33806

The first form of the usage is used to return a belief input from belief store I in covariance form. For example, tex2html_wrap_inline44202 returns the covariance specified between the elements tex2html_wrap_inline35788 and tex2html_wrap_inline35608 in belief store 1, tex2html_wrap_inline44208 . The abbreviated form with only one argument returns a variance. For example, tex2html_wrap_inline44210 is the abbreviation of tex2html_wrap_inline44212 and returns the variance specified for tex2html_wrap_inline35788 in belief store 2, tex2html_wrap_inline44216 .

Covariances declared functionally via the FVAR:  command may also be accessed using this operator: the built store of names is searched firstly, and the functionally defined store secondly.

The second form of the usage does not require explicitly a belief store number. Instead, the default variance store number is used. This store number is 1 by default, but can be changed by using the v  argument to the CONTROL:  command. Notice that you must be careful when using the second form in defining a function, as the default variance store may be changed (by you) between definition of the function and evaluation of it. The default variance store here means the default variance store at the time of evaluation; this might be different to the default at the time of definition. We recommend that you only use the first form when defining functions.  


next up previous contents index
Next: Random number generators Up: [B/D] operands and operators Previous: Accessing eigenvalue results

David Wooff
Wed Oct 21 15:14:31 BST 1998