Class SingletonSetComplement
java.lang.Object
adaa.analytics.rules.logic.representation.valueset.SingletonSet
adaa.analytics.rules.logic.representation.valueset.SingletonSetComplement
- All Implemented Interfaces:
IValueSet,Serializable
- See Also:
-
Field Summary
Fields inherited from class adaa.analytics.rules.logic.representation.valueset.SingletonSet
mapping, value -
Constructor Summary
ConstructorsConstructorDescriptionSingletonSetComplement(double v, List<String> mapping) Initializes members with arguments. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(double value) Checks whether the set contains a given value.booleanChecks if the value set equals to other one.booleanintersects(IValueSet set) Checks if the value set intersects with another one.toString()Converts the value set to string.Methods inherited from class adaa.analytics.rules.logic.representation.valueset.SingletonSet
getDifference, getIntersection, getMapping, getValue, getValueAsString, hashCode, setMapping, setValue
-
Constructor Details
-
SingletonSetComplement
Initializes members with arguments.- Parameters:
v- Singleton value.mapping- Mapping from value to label (can be null).
-
-
Method Details
-
contains
public 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).- Specified by:
containsin interfaceIValueSet- Overrides:
containsin classSingletonSet- Parameters:
value- Value to be checked.- Returns:
- Test result.
-
intersects
Checks if the value set intersects with another one.- Specified by:
intersectsin interfaceIValueSet- Overrides:
intersectsin classSingletonSet- Parameters:
set- Other value set.- Returns:
- Test result.
-
equals
Checks if the value set equals to other one.- Specified by:
equalsin interfaceIValueSet- Overrides:
equalsin classSingletonSet- Parameters:
obj- Object co cmopare with.- Returns:
- Test result.
-
toString
Converts the value set to string.- Specified by:
toStringin interfaceIValueSet- Overrides:
toStringin classSingletonSet- Returns:
- Text representation of the value set.
-