Class VariableExpression
java.lang.Object
edu.cmu.tetrad.calculator.expression.VariableExpression
- All Implemented Interfaces:
Expression,TetradSerializable,Serializable
An Expression for a variable.
- Author:
- Tyler Gibson
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleEvaluates the expression using the given contextevaluateGeneric(Context context) org.apache.commons.math3.distribution.IntegerDistributiongetIntegerDistribution(Context context) org.apache.commons.math3.distribution.RealDistributiongetRealDistribution(Context context) getToken()static VariableExpressiontoString()
-
Constructor Details
-
VariableExpression
-
-
Method Details
-
serializableInstance
-
getVariable
- Returns:
- the variable.
-
evaluateGeneric
-
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.
-
toString
-
getRealDistribution
- Specified by:
getRealDistributionin interfaceExpression
-
getIntegerDistribution
public org.apache.commons.math3.distribution.IntegerDistribution getIntegerDistribution(Context context) - Specified by:
getIntegerDistributionin interfaceExpression
-