|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- the variable type.public interface ConvexPolytope<V>
This interface is used to represent convex polytopes that are represented as the intersection of a finite set of half-spaces.
Method Summary | |
---|---|
int |
dimensions()
Returns the dimensions of the space in which this polytope lies. |
java.util.Set<ParallelHyperplanes<V>> |
getBoundingPlanes()
Returns the set of bounding hyperplanes that define this convex polytope. |
java.util.Set<V> |
getVariables()
Returns the variables contained in the hyperplanes defining the bounding half-spaces. |
boolean |
isVariable(java.lang.Object variable)
Indicates if the provided object is a variable in the bounding hyperplanes of this convex polytope. |
boolean |
isWithin(java.util.Map<? extends V,java.lang.Double> point,
double tolerance)
Indicates if the provided point lies within this convex polytope. |
Method Detail |
---|
java.util.Set<V> getVariables()
boolean isVariable(java.lang.Object variable)
variable
- the potential variable.
true
if the provided object is a variable in the
bounding hyperplanes of this convex polytope; false
otherwise.java.util.Set<ParallelHyperplanes<V>> getBoundingPlanes()
boolean isWithin(java.util.Map<? extends V,java.lang.Double> point, double tolerance)
point
- variables mapped to numerical values. Every key of this
map must be a variable of this polytope and every variable must be
present.tolerance
- the amount by which a point may lay outside this
polytope, but still considered within it. This should be a small
positive numer, like 1E-9 for example.
true
if the provided point lies within this polytope;
false
otherwise.int dimensions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |