25 #ifndef PAGMO_UTIL_RACING_H
26 #define PAGMO_UTIL_RACING_H
32 #include "../config.h"
33 #include "../serialization.h"
34 #include "../population.h"
39 namespace pagmo{
namespace util {
43 class __PAGMO_VISIBLE racing_population :
public population
46 racing_population(
const population &);
47 racing_population(
const problem::base &);
51 std::vector<double> get_rankings()
const;
57 racer_type(): m_mean(0), active(false) { }
60 std::vector<double> m_hist;
78 friend class boost::serialization::access;
79 template <
class Archive>
80 void serialize(Archive &ar,
const unsigned int)
88 struct stat_test_result{
90 stat_test_result(
unsigned int N = 0): trivial(true), is_better(N,
std::vector<bool>(N, false)) { }
92 std::vector<std::vector<bool> > is_better;
96 stat_test_result friedman_test(std::vector<racer_type> &,
97 const std::vector<population::size_type> &,
98 const racing_population&,
101 stat_test_result core_friedman_test(
const std::vector<std::vector<double> > &,
104 void f_race_assign_ranks(std::vector<racer_type> &,
105 const racing_population &);
107 void f_race_adjust_ranks(std::vector<racer_type> &,
108 const std::vector<population::size_type> &);
111 stat_test_result wilcoxon_ranksum_test(std::vector<racer_type> &,
112 const std::vector<population::size_type> &,
113 const racing_population&,
116 stat_test_result core_wilcoxon_ranksum_test(
const std::vector<std::vector<double> > &X,
std::vector< double > decision_vector
Decision vector type.
std::vector< double > fitness_vector
Fitness vector type.
std::vector< double > constraint_vector
Constraint vector type.