Interface Expression
- All Superinterfaces:
Serializable,TetradSerializable
- All Known Implementing Classes:
ConstantExpression,EvaluationExpression,VariableExpression
Represents a mathematical expression. Used in the Calculator and the Generalized Sem model.
Note that expressions form trees. Each expression has a (possibly empty) list of children.
- Author:
- Tyler Gibson
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondoubleEvaluates the expression using the given contextorg.apache.commons.math3.distribution.IntegerDistributiongetIntegerDistribution(Context context) org.apache.commons.math3.distribution.RealDistributiongetRealDistribution(Context context) getToken()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
-
Method Details
-
evaluate
Evaluates the expression using the given context -
getToken
String getToken()- Returns:
- the token for this expression=="+".
-
getPosition
ExpressionDescriptor.Position getPosition()- Returns:
- the position, infix or not.
-
getExpressions
List<Expression> getExpressions()- Returns:
- the sub expressions of this expression.
-
getRealDistribution
-
getIntegerDistribution
-