Class EvaluationExpression
java.lang.Object
edu.cmu.tetrad.calculator.expression.EvaluationExpression
- All Implemented Interfaces:
Expression
,TetradSerializable
,Serializable
An equation expression.
- Author:
- Tyler Gibson
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Evaluates the expression using the given contextorg.apache.commons.math3.distribution.IntegerDistribution
getIntegerDistribution
(Context context) org.apache.commons.math3.distribution.RealDistribution
getRealDistribution
(Context context) getToken()
static EvaluationExpression
-
Constructor Details
-
EvaluationExpression
-
-
Method Details
-
serializableInstance
-
evaluate
Description copied from interface:Expression
Evaluates the expression using the given context- Specified by:
evaluate
in interfaceExpression
-
getToken
- Specified by:
getToken
in interfaceExpression
- Returns:
- the token for this expression=="+".
-
getPosition
- Specified by:
getPosition
in interfaceExpression
- Returns:
- the position, infix or not.
-
getExpressions
- Specified by:
getExpressions
in interfaceExpression
- Returns:
- the sub expressions of this expression.
-
getRealDistribution
- Specified by:
getRealDistribution
in interfaceExpression
-
getIntegerDistribution
public org.apache.commons.math3.distribution.IntegerDistribution getIntegerDistribution(Context context) - Specified by:
getIntegerDistribution
in interfaceExpression
-