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 TypeMethodDescriptiondouble
Evaluates the expression using the given contextevaluateGeneric
(Context context) org.apache.commons.math3.distribution.IntegerDistribution
getIntegerDistribution
(Context context) org.apache.commons.math3.distribution.RealDistribution
getRealDistribution
(Context context) getToken()
static VariableExpression
toString()
-
Constructor Details
-
VariableExpression
-
-
Method Details
-
serializableInstance
-
getVariable
- Returns:
- the variable.
-
evaluateGeneric
-
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.
-
toString
-
getRealDistribution
- Specified by:
getRealDistribution
in interfaceExpression
-
getIntegerDistribution
public org.apache.commons.math3.distribution.IntegerDistribution getIntegerDistribution(Context context) - Specified by:
getIntegerDistribution
in interfaceExpression
-