public class BoundedDifferentiableVariable extends DifferentiableVariable
ADDITION_PRECEDENCE, POWER_PRECEDENCE, PRODUCT_PRECEDENCE, QUOTIENT_PRECEDENCE, SUBTRACTION_PRECEDENCE, SYMBOL_PRECEDENCE
Constructor and Description |
---|
BoundedDifferentiableVariable(java.lang.String name,
double defaultValue,
double lowerLimit,
double upperLimit)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getLowerLimit()
get the lower limit
|
double |
getNearestBoundedValue(double value)
get the nearest bounded (i.e.
|
protected int |
getPrecedence()
get the operation precedence
|
double |
getUpperLimit()
get the upper limit
|
boolean |
isBounded(double value)
determine whether the value is bounded within the given bounds
|
void |
setLowerLimit(double lowerLimit)
set the lower limit
|
void |
setUpperLimit(double upperLimit)
set the upper limit
|
copySubstituting, evaluate, getDefaultValue, getDerivative, getInstance, getName, isEquivalentTo, setDefaultValue, toString
abs, acos, asin, atan, copySubstitutingWithCache, copyWithSubstitutions, cos, cosh, evaluate, evaluate, evaluateWithCache, exp, getConstant, getVariable, isEqualTo, log, minus, minus, minus, minus, multiply, negate, over, over, over, over, plus, plus, plus, plus, plus, pow, pow, reciprocal, sin, sinh, sqrt, sum, tan, tanh, times, times, times, times, times, toString, toString
public BoundedDifferentiableVariable(java.lang.String name, double defaultValue, double lowerLimit, double upperLimit)
public double getLowerLimit()
public void setLowerLimit(double lowerLimit)
public double getUpperLimit()
public void setUpperLimit(double upperLimit)
public boolean isBounded(double value)
public double getNearestBoundedValue(double value)
protected int getPrecedence()
getPrecedence
in class DifferentiableOperation