Class TableExpression
Represents an expression that is used to generate Table distributions.
Inherited Members
Namespace: BayesServer
Assembly: BayesServer.dll
Syntax
public sealed class TableExpression : IDistributionExpression, IExpression
Constructors
TableExpression(String)
Constructs a new TableExpression instance with double return type.
Declaration
public TableExpression(string text)
Parameters
Type | Name | Description |
---|---|---|
String | text | The expression text. |
TableExpression(String, ExpressionReturnType)
Constructs a new TableExpression instance.
Declaration
public TableExpression(string text, ExpressionReturnType returnType)
Parameters
Type | Name | Description |
---|---|---|
String | text | The expression text. |
ExpressionReturnType | returnType | The return type of the expression. |
TableExpression(String, ExpressionReturnType, TableExpressionNormalization)
Constructs a new TableExpression instance.
Declaration
public TableExpression(string text, ExpressionReturnType returnType, TableExpressionNormalization normalization)
Parameters
Type | Name | Description |
---|---|---|
String | text | The expression text. |
ExpressionReturnType | returnType | The return type of the expression. |
TableExpressionNormalization | normalization | The normalization, if any, to apply once the table has been filled, but before assignment. |
Properties
Normalization
Gets of sets the normalization method, if any, to use once the Table values have been generated, but before assignment to a node.
Declaration
public TableExpressionNormalization Normalization { get; set; }
Property Value
Type | Description |
---|---|
TableExpressionNormalization |
Owner
Gets the current owner, if assigned to a node. An expression cannot be modified when it is assigned to a node.
Declaration
public Node Owner { get; }
Property Value
Type | Description |
---|---|
Node |
ReturnType
Gets the return type of the expression.
Declaration
public ExpressionReturnType ReturnType { get; set; }
Property Value
Type | Description |
---|---|
ExpressionReturnType |
Text
Gets or sets the expression text, which is run for each cell in the table.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Copy()
Creates a copy of the expression. The new expression will not have an owner.
Declaration
public IExpression Copy()
Returns
Type | Description |
---|---|
IExpression | A copy of the expression. |