Simple Application Framework  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Namespaces | Functions
Saf/Algo/Selection/Median.h File Reference

Median algorithm.
More...

#include "../Predicate.h"
#include "../Swap.h"

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 >
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 >
Saf::Algo::Selection::Median (const T &x, const T &y, const T &z)
 Get median of three values (using the standard less than comparator).

Detailed Description

Median algorithm.
Author:
Ondrej Danek ondre.nosp@m.j.da.nosp@m.nek@g.nosp@m.mail.nosp@m..com
Date:
2012