|
ZonoOpt v2.0.1
|
Base class for Interval and IntervalView. More...
#include <Intervals.hpp>
Public Member Functions | |
| zono_float & | y_min () |
| Returns reference to interval lower bound. | |
| zono_float & | y_max () |
| Returns reference to interval upper bound. | |
| const zono_float & | y_min () const |
| Returns const reference to interval lower 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 Derived &x1, const Derived &x2) |
| sets interval to x1 + x2 | |
| void | subtract_assign (const Derived &x1, const Derived &x2) |
| sets interval to x1 - x2 | |
| void | multiply_assign (const Derived &x1, const Derived &x2) |
| sets interval to x1 * x2 | |
| void | multiply_assign (const Derived &x1, zono_float alpha) |
| sets interval to alpha * x1 | |
| void | inverse () |
| sets interval to its inverse | |
| void | divide_assign (const Derived &x1, const Derived &x2) |
| sets interval to x1 / x2 | |
| void | intersect_assign (const Derived &x1, const Derived &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 Derived &x) |
| compute interval containing sin(x) over x | |
| void | cos_assign (const Derived &x) |
| compute interval containing cos(x) over x | |
| void | tan_assign (const Derived &x) |
| compute interval containing tan(x) over x | |
| void | arcsin_assign (const Derived &x) |
| compute interval containing arcsin(x) over x | |
| void | arccos_assign (const Derived &x) |
| compute interval containing arccos(x) over x | |
| void | arctan_assign (const Derived &x) |
| compute interval containing arctan(x) over x | |
| void | exp_assign (const Derived &x) |
| compute interval containing exp(x) over x | |
Base class for Interval and IntervalView.
This class defines the interface for Interval and IntervalView using the CRTP.
sets interval to x1 + x2
| x1 | interval |
| x2 | interval |
|
inline |
compute interval containing arccos(x) over x
| x | input interval |
|
inline |
compute interval containing arcsin(x) over x
| x | input interval |
|
inline |
compute interval containing arctan(x) over x
| x | input interval |
|
inline |
checks whether interval contains a value
| y | scalar value |
|
inline |
compute interval containing cos(x) over x
| x | input interval |
|
inline |
sets interval to x1 / x2
| x1 | interval |
| x2 | interval |
|
inline |
compute interval containing exp(x) over x
| x | input interval |
|
inline |
sets interval to intersection of x1 and x2
| x1 | interval |
| x2 | interval |
|
inline |
sets interval to its inverse
|
inline |
checks whether interval is empty
|
inline |
checks whether interval is single-valued (i.e., width is 0 within numerical tolerance)
|
inline |
sets interval to x1 * x2
| x1 | interval |
| x2 | interval |
|
inline |
sets interval to alpha * x1
| x1 | interval |
| alpha | scalar |
|
inline |
Sets interval bounds.
| min | lower bound |
| max | upper bound |
|
inline |
compute interval containing sin(x) over x
| x | input interval |
|
inline |
sets interval to x1 - x2
| x1 | interval |
| x2 | interval |
|
inline |
compute interval containing tan(x) over x
| x | input interval |
|
inline |
get width of interval (ub - lb)
|
inline |
Returns reference to interval upper bound.
|
inline |
Returns const reference to interval upper bound.
|
inline |
Returns reference to interval lower bound.
|
inline |
Returns const reference to interval lower bound.