Table Expressions
Since version 9.0
For details on the expression language please see Expressions.
For examples, see the Table expressions network included with Bayes Server, than can be opened from the Start Page or from File/Open.
Combinations
The expression is currently evaluated for each combination of a table.
You should return a double
value for each combination. ctx.CurrentState
can be called on any of the table's variables to determine which combination is being requested.
TableExpressionContext
As well as auto importing any variable aliases to the global namespace, a special variable named ctx
is also available globally. This variable, known as the context has type TableExpressionContext
.
The context allows you to find the Current State for each table combination, as well as accessing variables by name instead of alias, and more.
The full range of members is available on the Expressions page.
Normalization
There are a number of normalization options available, that are performed after all combinations have been evaluated.