|
ZonoOpt v2.0.1
|
#include <Intervals.hpp>


Public Member Functions | |
| Interval () | |
| default constructor | |
| Interval (zono_float y_min, zono_float y_max) | |
| Interval constructor. | |
| Interval * | clone () const |
| Clone Interval object. | |
| zono_float & | get_y_min () |
| get reference to lower bound | |
| zono_float & | get_y_max () |
| get reference to upper bound | |
| const zono_float & | get_y_min () const |
| get const reference to lower bound | |
| const zono_float & | get_y_max () const |
| get const reference to upper bound | |
| Interval | operator+ (const Interval &other) const |
| interval addition | |
| Interval | operator- (const Interval &other) const |
| interval subtraction | |
| Interval | operator* (const Interval &other) const |
| interval multiplication | |
| Interval | operator* (zono_float alpha) const |
| interval multiplication with scalar | |
| Interval | inv () const |
| interval inverse | |
| Interval | operator/ (const Interval &other) const |
| interval division | |
| Interval | intersect (const Interval &other) const |
| interval intersection | |
| zono_float | center () const |
| get center of interval | |
| IntervalView | as_view () |
| IntervalView interface for Interval. | |
| std::string | print () const |
| print method for Interval | |
| Interval | sin () const |
| compute interval containing sin(x) for all x in interval | |
| Interval | cos () const |
| compute interval containing cos(x) for all x in interval | |
| Interval | tan () const |
| compute interval containing tan(x) for all x in interval | |
| Interval | arcsin () const |
| compute interval containing arcsin(x) for all x in interval | |
| Interval | arccos () const |
| compute interval containing arccos(x) for all x in interval | |
| Interval | arctan () const |
| compute interval containing arctan(x) for all x in interval | |
| Interval | exp () const |
| compute interval containing exp(x) for all x in interval | |
Public Member Functions inherited from ZonoOpt::IntervalBase< Interval > | |
| zono_float & | y_min () |
| Returns reference to interval lower bound. | |
| const zono_float & | y_min () const |
| Returns const reference to interval lower bound. | |
| zono_float & | y_max () |
| Returns reference to interval upper bound. | |
| const zono_float & | y_max () const |
| Returns const reference to interval upper bound. | |
| void | set (const zono_float min, const zono_float max) |
| Sets interval bounds. | |
| void | add_assign (const Interval &x1, const Interval &x2) |
| sets interval to x1 + x2 | |
| void | subtract_assign (const Interval &x1, const Interval &x2) |
| sets interval to x1 - x2 | |
| void | multiply_assign (const Interval &x1, const Interval &x2) |
| sets interval to x1 * x2 | |
| void | multiply_assign (const Interval &x1, zono_float alpha) |
| sets interval to alpha * x1 | |
| void | inverse () |
| sets interval to its inverse | |
| void | divide_assign (const Interval &x1, const Interval &x2) |
| sets interval to x1 / x2 | |
| void | intersect_assign (const Interval &x1, const Interval &x2) |
| sets interval to intersection of x1 and x2 | |
| bool | is_empty () const |
| checks whether interval is empty | |
| bool | contains (zono_float y) const |
| checks whether interval contains a value | |
| bool | is_single_valued () const |
| checks whether interval is single-valued (i.e., width is 0 within numerical tolerance) | |
| zono_float | width () const |
| get width of interval (ub - lb) | |
| void | sin_assign (const Interval &x) |
| compute interval containing sin(x) over x | |
| void | cos_assign (const Interval &x) |
| compute interval containing cos(x) over x | |
| void | tan_assign (const Interval &x) |
| compute interval containing tan(x) over x | |
| void | arcsin_assign (const Interval &x) |
| compute interval containing arcsin(x) over x | |
| void | arccos_assign (const Interval &x) |
| compute interval containing arccos(x) over x | |
| void | arctan_assign (const Interval &x) |
| compute interval containing arctan(x) over x | |
| void | exp_assign (const Interval &x) |
| compute interval containing exp(x) over x | |
Public Attributes | |
| zono_float | lb |
| lower bound | |
| zono_float | ub |
| upper bound | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Interval &interval) |
| print to ostream | |
Interval class.
Implements interface from IntervalBase. This class owns its lower and upper bounds.
|
inline |
default constructor
|
inline |
Interval constructor.
| y_min | lower bound |
| y_max | upper bound |
|
inline |
compute interval containing arccos(x) for all x in interval
|
inline |
compute interval containing arcsin(x) for all x in interval
|
inline |
compute interval containing arctan(x) for all x in interval
|
inline |
IntervalView interface for Interval.
|
inline |
get center of interval
|
inline |
compute interval containing cos(x) for all x in interval
|
inline |
compute interval containing exp(x) for all x in interval
|
inline |
get reference to upper bound
|
inline |
get const reference to upper bound
|
inline |
get reference to lower bound
|
inline |
get const reference to lower bound
interval intersection
| other | other interval |
|
inline |
interval inverse
|
inline |
interval multiplication
| other | other interval |
|
inline |
interval multiplication with scalar
| alpha | scalar |
|
inline |
interval addition
| other | other interval |
|
inline |
interval subtraction
| other | other interval |
|
inline |
interval division
| other | other interval |
|
inline |
print method for Interval
|
inline |
compute interval containing sin(x) for all x in interval
|
inline |
compute interval containing tan(x) for all x in interval
print to ostream
| os | |
| interval |
| zono_float ZonoOpt::Interval::lb |
lower bound
| zono_float ZonoOpt::Interval::ub |
upper bound