#include <Interval.h>
Public Member Functions | |
| Interval (Treal low=1, Treal upp=-1) | |
| bool | empty () const |
| void | intersect (Interval const &other) |
| void | intersect_always_non_empty (Interval const &other) |
| Treal | length () const |
| Returns the length of the interval. | |
| Treal | midPoint () const |
| bool | cover (Treal const value) const |
| bool | overlap (Interval const &other) const |
| void | increase (Treal const value) |
| Increases interval with value in both directions. | |
| void | decrease (Treal const value) |
| Treal | low () const |
| Treal | upp () const |
| Interval< Treal > | operator * (Treal const &value) const |
| Interval< Treal > | operator- (Interval< Treal > const &other) const |
| Interval< Treal > | operator+ (Interval< Treal > const &other) const |
| Interval< Treal > | operator/ (Treal const &value) const |
| Interval< Treal > | operator- (Treal const &value) const |
| Interval< Treal > | operator+ (Treal const &value) const |
| void | puriStep (int poly) |
| void | invPuriStep (int poly) |
| void | puriStep (int poly, Treal alpha) |
| void | invPuriStep (int poly, Treal alpha) |
Static Public Member Functions | |
| static Interval | intersect (Interval const &A, Interval const &B) |
Protected Attributes | |
| Treal | lowerBound |
| Treal | upperBound |
| mat::Interval< Treal >::Interval | ( | Treal | low = 1, |
|
| Treal | upp = -1 | |||
| ) | [inline, explicit] |
| bool mat::Interval< Treal >::cover | ( | Treal const | value | ) | const [inline] |
| void mat::Interval< Treal >::decrease | ( | Treal const | value | ) | [inline] |
| bool mat::Interval< Treal >::empty | ( | ) | const [inline] |
| void mat::Interval< Treal >::increase | ( | Treal const | value | ) | [inline] |
Increases interval with value in both directions.
Useful for error control.
| void mat::Interval< Treal >::intersect | ( | Interval< Treal > const & | other | ) | [inline] |
| static Interval mat::Interval< Treal >::intersect | ( | Interval< Treal > const & | A, | |
| Interval< Treal > const & | B | |||
| ) | [inline, static] |
| void mat::Interval< Treal >::intersect_always_non_empty | ( | Interval< Treal > const & | other | ) | [inline] |
| void mat::Interval< Treal >::invPuriStep | ( | int | poly, | |
| Treal | alpha | |||
| ) |
| void mat::Interval< Treal >::invPuriStep | ( | int | poly | ) |
| Treal mat::Interval< Treal >::length | ( | ) | const [inline] |
Returns the length of the interval.
0 if empty.
| Treal mat::Interval< Treal >::low | ( | ) | const [inline] |
| Treal mat::Interval< Treal >::midPoint | ( | ) | const [inline] |
| Interval<Treal> mat::Interval< Treal >::operator * | ( | Treal const & | value | ) | const [inline] |
| Interval<Treal> mat::Interval< Treal >::operator+ | ( | Treal const & | value | ) | const [inline] |
| Interval<Treal> mat::Interval< Treal >::operator+ | ( | Interval< Treal > const & | other | ) | const [inline] |
| Interval<Treal> mat::Interval< Treal >::operator- | ( | Treal const & | value | ) | const [inline] |
| Interval<Treal> mat::Interval< Treal >::operator- | ( | Interval< Treal > const & | other | ) | const [inline] |
| Interval<Treal> mat::Interval< Treal >::operator/ | ( | Treal const & | value | ) | const [inline] |
| bool mat::Interval< Treal >::overlap | ( | Interval< Treal > const & | other | ) | const [inline] |
| void mat::Interval< Treal >::puriStep | ( | int | poly, | |
| Treal | alpha | |||
| ) |
| void mat::Interval< Treal >::puriStep | ( | int | poly | ) |
| Treal mat::Interval< Treal >::upp | ( | ) | const [inline] |
Treal mat::Interval< Treal >::lowerBound [protected] |
Treal mat::Interval< Treal >::upperBound [protected] |
1.4.7