Package org.tweetyproject.math.term
Class FloatConstant
java.lang.Object
org.tweetyproject.math.term.Term
org.tweetyproject.math.term.Constant
org.tweetyproject.math.term.FloatConstant
This class encapsulates a float as a term.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionFloatConstant
(double f) Creates a new Float.FloatConstant
(float f) Creates a new Float. -
Method Summary
Methods inherited from class org.tweetyproject.math.term.Constant
collapseAssociativeOperations, derive, expandAssociativeOperations, getAbsoluteValues, getMaximums, getMinimums, getProducts, getSums, getTerms, getVariables, isContinuous, replaceTerm, simplify, toLinearForm, toQuadraticForm, value
Methods inherited from class org.tweetyproject.math.term.Term
add, doubleValue, evaluateMatrix, evaluateVector, evaluateVector, isContinuous, isLinear, isQuadratic, min, minus, mult, replaceAllTerms, replaceAllTerms
-
Constructor Details
-
FloatConstant
public FloatConstant(float f) Creates a new Float.- Parameters:
f
- a float.
-
FloatConstant
public FloatConstant(double f) Creates a new Float.- Parameters:
f
- a double.
-
-
Method Details
-
getValue
public double getValue()Get the value of this float.- Returns:
- the value of this float.
-
isInteger
-
toString
-