Constructor and Description |
---|
BoundImpl(double lb,
double ub)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
BoundCompareResult |
compare(double candidateB)
compares the given value with the range.
|
double |
getDiff()
return diff, i.e.
|
double |
getLb()
returns the lower bound.
|
double |
getMid()
returns mid point, i.e., (LB+UB)/2.
|
double |
getUb()
returns upper bound.
|
void |
setLb(double lb,
boolean lbEpsilon)
sets lower bound.
|
void |
setUb(double ub)
sets upper bound.
|
java.lang.String |
toString() |
public BoundImpl(double lb, double ub)
lb
- lower bound, this lb is inclusive.ub
- upper bound.public BoundCompareResult compare(double candidateB)
Bound
public double getLb()
Bound
public final void setLb(double lb, boolean lbEpsilon)
Bound
public double getUb()
Bound
public final void setUb(double ub)
Bound
public double getMid()
Bound
public double getDiff()
Bound
public java.lang.String toString()
toString
in class java.lang.Object