|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.util.Vectors
public final class Vectors
Utility methods for Vectors.
Method Summary | ||
---|---|---|
static
|
create(T... result)
Utility method to create a Vector, given any number of Number instances. |
|
static Vector |
lowerBoundVector(Vector vector)
Constructs a Vector from vector Vector with each component's value
set to the lower bound of that component. |
|
static Vector |
upperBoundVector(Vector vector)
Constructs a Vector from vector Vector with each component's value
set to the upper bound of that component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Vector upperBoundVector(Vector vector)
Vector
from vector
Vector with each component's value
set to the upper bound of that component.
vector
- The Vector to create the upper bound vector from.
Vector
with all the elements set to their respective upper bounds
UnsupportedOperationException
- When an element in the Vector
is not a Numeric
public static Vector lowerBoundVector(Vector vector)
Vector
from vector
Vector with each component's value
set to the lower bound of that component.
vector
- The Vector from which to create the lower bound vector.
Vector
with all the elements set to their respective lower bounds
UnsupportedOperationException
- when an element in the Vector
is not a Numeric
public static <T extends Number> Vector create(T... result)
T
- The type extending Number.result
- The list of values to include within the created Vector.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |