IntegerDomain¶
- class pqp.data.IntegerDomain(values)¶
Bases:
DiscreteDomain
Methods Summary
check_int
(val)Checks whether a value is an integer
Returns a human readable description of assumptions made about the domain
Calculates the cardinality of the domain
Returns a list of all possible values in the domain
Methods Documentation
- check_int(val)¶
Checks whether a value is an integer
- describe_assumptions()¶
Returns a human readable description of assumptions made about the domain
- get_cardinality()¶
Calculates the cardinality of the domain
- Returns:
the number of possible values in the domain
- Return type:
int
- get_values()¶
Returns a list of all possible values in the domain
- Returns:
all possible values in the domain
- Return type:
list