Simple Application Framework
1
|
Median algorithm.
Go to the source code of this file.
Namespaces | |
namespace | Saf |
Global library namespace. | |
namespace | Saf::Algo |
Generic data handling algorithms and structures. | |
namespace | Saf::Algo::Selection |
Selection algorithms. | |
Functions | |
template<class T , class Pred > | |
T | Saf::Algo::Selection::Median (const T &x, const T &y, const T &z, Pred pred) |
Get median of three values using predicate pred . | |
template<class T > | |
T | Saf::Algo::Selection::Median (const T &x, const T &y, const T &z) |
Get median of three values (using the standard less than comparator). |
Median algorithm.