29 #ifndef MYGSL_INTERVAL_H 30 #define MYGSL_INTERVAL_H 1 72 interval (
double min_,
bool min_include_,
73 double max_,
bool max_include_,
109 bool is_in (
double x_)
const;
121 void set (
double min_,
double max_,
double eps_ =
AUTO_EPS);
154 double max_,
bool max_include_,
175 #endif // MYGSL_INTERVAL_H friend std::ostream & operator<<(std::ostream &out_, const interval &i_)
static const double DEFAULT_EPS
Definition: interval.h:49
static const double NO_VALUE
Definition: interval.h:48
static interval make_min(double min_, bool min_include_=excluded, double eps_=AUTO_EPS)
static const bool included
Definition: interval.h:60
static const char IO_EMPTY
Definition: interval.h:54
void set_min_included(bool inc_)
bool is_in_max_unsafe(double x_) const
interval get_safe_interval(double eps_=AUTO_EPS) const
static const char IO_CLOSE_INCL
Definition: interval.h:57
void set(double min_, double max_, double eps_=AUTO_EPS)
bool is_min_included() const
static const char IO_OPEN_INCL
Definition: interval.h:55
bool is_max_included() const
static const char IO_SEP
Definition: interval.h:53
static const double auto_eps
Definition: interval.h:51
#define DATATOOLS_SERIALIZATION_DECLARATION()
Definition: i_serializable.h:266
bool intercept_with(const interval &)
static interval make_min_max(double min_, bool min_include_, double max_, bool max_include_, double eps_=AUTO_EPS)
bool intersection_with(const interval &i_) const
static const double AUTO_EPS
Definition: interval.h:50
static const char IO_OPEN_EXCL
Definition: interval.h:56
virtual ~interval()
Destructor.
void set_max_included(bool inc_)
bool is_in_safe(double x_) const
bool union_with(const interval &)
static interval make_max(double max_, bool max_include_=excluded, double eps_=AUTO_EPS)
static interval make_min_max_excluded(double min_, double max_, double eps_=AUTO_EPS)
static interval make_neighbourhood(double value_, double delta_, bool included_=excluded)
bool is_in_min_unsafe(double x_) const
bool is_in(double x_) const
static const char IO_CLOSE_EXCL
Definition: interval.h:58
static const double NO_MAX_VALUE
Definition: interval.h:47
static interval make_empty()
friend std::istream & operator>>(std::istream &in_, interval &i_)
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
interval()
Default constructor.
void set_eps(double eps_)
static const bool excluded
Definition: interval.h:61
static interval make_min_max_included(double min_, double max_, double eps_=AUTO_EPS)
static interval make_no_limit(double eps_=AUTO_EPS)
An interval with real bounds.
Definition: interval.h:42
static const double NO_MIN_VALUE
Definition: interval.h:46