|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SetAPI
This interface defines the mathematical concept of a Set. Sets can be continuous or discrete and are defined in a number of ways. Since a Set can take on many forms, no real structure of a Set is defined here, however this does provide an API for actions that can be done on a Set.
-=* CHANGE LOG *=- 06/19/2008 -- EMM: Original implementation.
| Method Summary | |
|---|---|
boolean |
contains(double x)
Checks if a given value x exists in this set. |
boolean |
equals(SetAPI set)
Checks whether the calling SetAPI and the passed
set are logically equal. |
SetAPI |
intersectionOf(SetAPI set)
Creates and returns a set whose values are a composite single-copy of any value appearing in both of the calling SetAPI and the passed
set. |
double |
lowerBound()
|
SetAPI |
unionWith(SetAPI set)
Creates and returns a set whose values are a composite single-copy of any value appearing in one or both of the calling SetAPI and the
passed set. |
double |
upperBound()
|
| Method Detail |
|---|
boolean contains(double x)
x exists in this set. Due to double
floating point precision errors, all comparisons should take place within
a reasonable tolerance for the specific set. This tolerance is left up to
the implementation to determine.
x - The value to check for.
SetAPI unionWith(SetAPI set)
SetAPI and the
passed set.
SetAPI as specified above.SetAPI intersectionOf(SetAPI set)
SetAPI and the passed
set.
SetAPI as specified above.boolean equals(SetAPI set)
SetAPI and the passed
set are logically equal.
double lowerBound()
double upperBound()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||