|
ZonoOpt v2.1.0
|
#include <Intervals.hpp>
Public Member Functions | |
| Interval () | |
| Default constructor. | |
| Interval (const zono_float y_min, const zono_float y_max) | |
| Interval constructor. | |
| Interval * | clone () const |
| Clone Interval object. | |
| zono_float | lb () const |
| Get lower bound. | |
| zono_float | ub () const |
| Get upper bound. | |
| Interval | operator+ (const Interval &other) const |
| Interval addition. | |
| Interval | operator+ (const zono_float alpha) const |
| Interval addition with scalar. | |
| Interval | operator- (const Interval &other) const |
| Interval subtraction. | |
| Interval | operator- (const zono_float alpha) const |
| Interval subtraction with scalar. | |
| Interval | operator* (const Interval &other) const |
| Interval multiplication. | |
| Interval | operator* (const zono_float alpha) const |
| Interval multiplication with scalar. | |
| Interval | operator/ (const Interval &other) const |
| Interval division. | |
| Interval | operator/ (const zono_float alpha) const |
| Interval division with scalar. | |
| Interval | inv () const |
| Interval inverse. | |
| Interval | intersect (const Interval &other) const |
| Interval intersection. | |
| bool | contains (const zono_float x) 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) | |
| bool | is_empty () const |
| Checks whether interval is empty. | |
| zono_float | center () const |
| Get center of interval. | |
| zono_float | width () const |
| Get width of interval. | |
| Interval | radius () const |
| Get radius of interval. | |
| Interval | abs () const |
| Get absolute value of interval. | |
| Interval | sqrt () const |
| Get square root of interval. | |
| Interval | pow (const int n) const |
| Interval power. | |
| Interval | nth_root (const int n) const |
| Interval nth root. | |
| Interval | exp () const |
| Compute interval containing exp(x) for all x in interval. | |
| Interval | log () const |
| Compute interval containing log(x) (base e) for all x in 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 | sinh () const |
| Compute interval containing sinh(x) for all x in interval. | |
| Interval | cosh () const |
| Compute interval containing cosh(x) for all x in interval. | |
| Interval | tanh () const |
| Compute interval containing tanh(x) for all x in interval. | |
| Interval | arcsinh () const |
| Compute interval containing arcsinh(x) for all x in interval. | |
| Interval | arccosh () const |
| Compute interval containing arccosh(x) for all x in interval. | |
| Interval | arctanh () const |
| Compute interval containing arctanh(x) for all x in interval. | |
| std::string | print () const |
| Print method for interval. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Interval &interval) |
| Print to ostream. | |
Interval class.
Wraps boost::numeric::interval
|
inline |
Default constructor.
|
inline |
Interval constructor.
| y_min | lower bound |
| y_max | upper bound |
|
inline |
Get absolute value of interval.
|
inline |
Compute interval containing arccos(x) for all x in interval.
|
inline |
Compute interval containing arccosh(x) for all x in interval.
|
inline |
Compute interval containing arcsin(x) for all x in interval.
|
inline |
Compute interval containing arcsinh(x) for all x in interval.
|
inline |
Compute interval containing arctan(x) for all x in interval.
|
inline |
Compute interval containing arctanh(x) for all x in interval.
|
inline |
Get center of interval.
|
inline |
Checks whether interval contains a value.
| x | scalar value |
|
inline |
Compute interval containing cos(x) for all x in interval.
|
inline |
Compute interval containing cosh(x) for all x in interval.
|
inline |
Compute interval containing exp(x) for all x in interval.
|
inline |
Checks whether interval is empty.
|
inline |
Checks whether interval is single-valued (i.e., width is 0 within numerical tolerance)
|
inline |
Get lower bound.
|
inline |
Compute interval containing log(x) (base e) for all x in interval.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Print method for interval.
|
inline |
Get radius of interval.
Returns interval centered at zero with width equal to the width of the original interval
|
inline |
Compute interval containing sin(x) for all x in interval.
|
inline |
Compute interval containing sinh(x) for all x in interval.
|
inline |
Get square root of interval.
|
inline |
Compute interval containing tan(x) for all x in interval.
|
inline |
Compute interval containing tanh(x) for all x in interval.
|
inline |
Get upper bound.
|
inline |
Get width of interval.
|
friend |
Print to ostream.
| os | |
| interval |