Interface IValueSet
- All Known Implementing Classes:
AnyValueSet
,Interval
,SingletonSet
,SingletonSetComplement
,UndefinedSet
,Universum
public interface IValueSet
Inteface to be implemented by all classes representing set of values (discrete set, interval, sum of sets, etc.).
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double value) Checks whether the set contains a given value.boolean
Checks if the value set equals to another one.getDifference
(IValueSet set) Get difference between the value set and another one.getIntersection
(IValueSet set) Gets intersection of the value set with another one.int
hashCode()
Calculates hashcode of the value set.boolean
intersects
(IValueSet set) Checks if the value set intersects with another one.toString()
Converts the value set to a string.
-
Method Details
-
contains
boolean contains(double value) Checks whether the set contains a given value. If the value is missing (NaN), the behaviour depends on the missing value policy (seeMissingValuesHandler
).- Parameters:
value
- Value to be checked.- Returns:
- Test result.
-
intersects
Checks if the value set intersects with another one.- Parameters:
set
- Other value set.- Returns:
- Test result.
-
getIntersection
Gets intersection of the value set with another one.- Parameters:
set
- Other value set.- Returns:
- Intersection of sets.
-
getDifference
Get difference between the value set and another one.- Parameters:
set
- Other value set.- Returns:
- Difference of sets.
-
equals
Checks if the value set equals to another one. -
hashCode
int hashCode()Calculates hashcode of the value set. -
toString
String toString()Converts the value set to a string.
-