semantique.processor.values.Interval

semantique.processor.values.Interval#

class semantique.processor.values.Interval(lower, upper)[source]#

Object to represent a set of values within the bounds of an interval.

The interval is closed at both sides, meaning that both of its bounds belong to the set. By definition, the given bounds should be ordinal, continuous or discrete values, and the lower bound should be smaller than or equal to the upper bound.

Parameters:
  • a (int or float) – The lower bound of the interval.

  • b (int or float) – The upper bound of the interval.

__init__(lower, upper)[source]#

Methods

__init__(lower, upper)

Attributes

lower

The lower bound of the interval.

sq

Semantique accessor.

upper

The upper bound of the interval.

value_type

The possible value types of the interval.