1#ifndef SORTING_PAIR_BUILDER_H
2#define SORTING_PAIR_BUILDER_H
36 template<
class Pred,
class OP>
45 std::fill(mean, mean+
Dim, 0);
46 for(std::size_t i = 0;i<size;++i)
47 for(
int d = 0;d<
Dim;++d)
50 for(
int d = 0;d<
Dim;++d)
54 std::fill(variance, variance+
Dim, 0);
55 for(std::size_t i = 0;i<size;++i)
56 for(
int d = 0;d<
Dim;++d)
60 int var = variance[0];
61 for(
int d = 1;d<
Dim;++d)
69 std::size_t *indices =
new std::size_t[size];
70 for(std::size_t i = 0;i<size;++i)
75 for(std::size_t i = 0;i<size;++i)
76 for(std::size_t j = i+1;j<size;++j)
80 > pred.getRange(dimension))
ProxyPred_t< A > ProxyPred(const A &a, unsigned d)
bool operator()(const T &a, const T &b)
ProxyPred_t(const A &a, unsigned d)
void for_each(const Pred &pred, const OP &op)
PBase::Position_t Position_t
SortingPairBuilder(PBase &p)