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 TypeMethodDescriptiondoubleEvaluates the expression using the given contextorg.apache.commons.math3.distribution.IntegerDistributiongetIntegerDistribution(Context context) org.apache.commons.math3.distribution.RealDistributiongetRealDistribution(Context context) getToken()static EvaluationExpression
-
Constructor Details
-
EvaluationExpression
-
-
Method Details
-
serializableInstance
-
evaluate
Description copied from interface:ExpressionEvaluates the expression using the given context- Specified by:
evaluatein interfaceExpression
-
getToken
- Specified by:
getTokenin interfaceExpression- Returns:
- the token for this expression=="+".
-
getPosition
- Specified by:
getPositionin interfaceExpression- Returns:
- the position, infix or not.
-
getExpressions
- Specified by:
getExpressionsin interfaceExpression- Returns:
- the sub expressions of this expression.
-
getRealDistribution
- Specified by:
getRealDistributionin interfaceExpression
-
getIntegerDistribution
public org.apache.commons.math3.distribution.IntegerDistribution getIntegerDistribution(Context context) - Specified by:
getIntegerDistributionin interfaceExpression
-