ContRap-Libraries
|
Class IntervalF is the floating point type interval. More...
#include <intervals.h>
Public Member Functions | |
IntervalF (double min, double max) | |
Creates the interval from its components. | |
~IntervalF () | |
Releases the memory. | |
double | get_min () const |
Returns the minimum bound. | |
double | get_max () const |
Returns the maximum bound. | |
IntervalF | join (const IntervalF &interval) |
Computes the inclusion-minimal interval, which contains the two given intervals. | |
IntervalF | cut (const IntervalF &interval) |
Computes the intersectin of the two intervals. | |
bool | is_empty () const |
Returns true if the interval represents an empty set. | |
Protected Attributes | |
double | min |
Interval bounds. | |
double | max |
Class IntervalF is the floating point type interval.
crp::IntervalF::IntervalF | ( | double | min, |
double | max | ||
) |
Creates the interval from its components.
min | Lower bound |
max | Upper bound |
crp::IntervalF::~IntervalF | ( | ) |
Releases the memory.
Computes the intersectin of the two intervals.
interval | The other interval |
double crp::IntervalF::get_max | ( | ) | const [inline] |
Returns the maximum bound.
double crp::IntervalF::get_min | ( | ) | const [inline] |
Returns the minimum bound.
bool crp::IntervalF::is_empty | ( | ) | const [inline] |
Returns true if the interval represents an empty set.
Computes the inclusion-minimal interval, which contains the two given intervals.
interval | The other interval |
double crp::IntervalF::max [protected] |
double crp::IntervalF::min [protected] |
Interval bounds.