public class DoubleBounds extends java.lang.Object implements Bounds<java.lang.Double>
DoubleBounds is an implementation of the Bounds for the
DoubleGenotype that accepts arrays as well as lists as bounds.| Modifier and Type | Field and Description |
|---|---|
protected double[] |
lower |
protected double[] |
upper |
| Constructor and Description |
|---|
DoubleBounds(double[] lower,
double[] upper)
Constructs a
DoubleBounds with arrays. |
DoubleBounds(java.util.List<java.lang.Double> lower,
java.util.List<java.lang.Double> upper)
Constructs a
DoubleBounds with lists. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getLowerBound(int index)
Returns the lower bound for the
i-th element. |
java.lang.Double |
getUpperBound(int index)
Returns the upper bound for the
i-th element. |
public DoubleBounds(double[] lower,
double[] upper)
DoubleBounds with arrays.lower - the lower boundsupper - the upper boundspublic DoubleBounds(java.util.List<java.lang.Double> lower,
java.util.List<java.lang.Double> upper)
DoubleBounds with lists.lower - the lower boundsupper - the upper boundspublic java.lang.Double getLowerBound(int index)
Boundsi-th element.getLowerBound in interface Bounds<java.lang.Double>index - the i-th elementi-th elementpublic java.lang.Double getUpperBound(int index)
Boundsi-th element.getUpperBound in interface Bounds<java.lang.Double>index - the i-th elementi-th element