17 #include <core/darwin.h> 18 #include <core/evolution.h> 21 #include <QLineSeries> 33 class FitnessWindow :
public QFrame {
36 static constexpr
int kInitialGenerations = 20;
37 static constexpr
int kXTicks = 10;
38 static constexpr
int kYTicks = 4;
39 static constexpr
float kFitnessAutoRange = 1.1f;
42 explicit FitnessWindow(QWidget* parent =
nullptr);
49 Ui::FitnessWindow* ui;
51 QLineSeries* best_fitness_series_ =
nullptr;
52 QLineSeries* median_fitness_series_ =
nullptr;
53 QLineSeries* worst_fitness_series_ =
nullptr;
55 map<string, QLineSeries*> extra_fitness_series_;
58 default_random_engine rnd{ 2 };
Summary of a generation (fitness samples, best genotype, ...)
Definition: evolution.h:37
Definition: evolution_window.h:22