|
Adobe Source Libraries 2.0.0
A collection of C++ libraries.
|
Functions | |
| template<typename T, typename R> | |
| const T & | median (const T &a, const T &b, const T &c, R r) |
| median implementation | |
| template<typename T, typename R> | |
| T & | median (T &a, T &b, T &c, R r) |
| median implementation | |
| template<typename T> | |
| const T & | median (const T &a, const T &b, const T &c) |
| median implementation | |
| template<typename T> | |
| T & | median (T &a, T &b, T &c) |
| median implementation | |
As with adobe::min and adobe::max, adobe::median is a select algorithm. The median algorithm returns the second of three arguments. The algorithm is stable, which is to say that if the arguments are in non-decresing order then the identity of the returned element will be the second identity of the second argument.
| const T & median | ( | const T & | a, |
| const T & | b, | ||
| const T & | c, | ||
| R | r ) |
Definition at line 41 of file median.hpp.
| T & median | ( | T & | a, |
| T & | b, | ||
| T & | c, | ||
| R | r ) |
Definition at line 50 of file median.hpp.
| const T & median | ( | const T & | a, |
| const T & | b, | ||
| const T & | c ) |
Definition at line 59 of file median.hpp.
| T & median | ( | T & | a, |
| T & | b, | ||
| T & | c ) |
Definition at line 68 of file median.hpp.