Package transsys :: Module optim :: Class Interval
[hide private]
[frames] | no frames]

Class Interval

source code

object --+
         |
        Interval

Represents an interval [a, b].

Instance Methods [hide private]
 
__init__(self, a, b)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__str__(self)
str(x)
source code
 
contains(self, other)
Determine whether interval other is a subset of this interval itself.
source code
 
intersection(self, other)
Compute the intersection of this interval itself with other.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, a, b)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

intersection(self, other)

source code 

Compute the intersection of this interval itself with other.

Returns:
An instance of Interval, or None if the intersection is empty.