|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.core.genotype.DoubleBounds
public class DoubleBounds
The DoubleBounds is an implementation of the Bounds for the
DoubleGenotype that accepts arrays as well as lists as bounds.
| Field Summary | |
|---|---|
protected double[] |
lower
|
protected double[] |
upper
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final double[] lower
protected final double[] upper
| Constructor Detail |
|---|
public DoubleBounds(double[] lower,
double[] upper)
DoubleBounds with arrays.
lower - the lower boundsupper - the upper bounds
public DoubleBounds(java.util.List<java.lang.Double> lower,
java.util.List<java.lang.Double> upper)
DoubleBounds with lists.
lower - the lower boundsupper - the upper bounds| Method Detail |
|---|
public java.lang.Double getLowerBound(int index)
Boundsi-th element.
getLowerBound in interface Bounds<java.lang.Double>index - the i-th element
i-th elementpublic java.lang.Double getUpperBound(int index)
Boundsi-th element.
getUpperBound in interface Bounds<java.lang.Double>index - the i-th element
i-th element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||