8 #define MAXLIFEFORCOMBI 2 // Eine Sondenkombination lebt maximal MAXLIFEFORCOMBI Generationen
12 class probe_statistic;
31 int length_of_group_tabs;
39 probe_tabs(
int *new_group_field =
NULp,
int *new_non_group_field =
NULp,
int len_group = 0);
50 double expected_children;
55 void quicksort(
long left,
59 int modificated_hamming_dist(
int one,
int two);
70 void scale(
double a,
double b) { fitness = a * fitness + b; }
76 bool is_dead() {
return life_counter <= 0; }
86 void sort(
long feld_laenge);
105 int probe_combi_array_length;
107 double average_fitness;
112 int len_roulette_wheel;
113 int generation_counter;
120 void prescale(
double *a,
double *b);
138 bool calcFitness(
bool use_genetic_algo,
double old_avg_fit);
158 int size_sonden_array;
164 int max_init_pop_combis;
183 ProbeValuation(
char **sonden_array,
int no_of_sonden,
int *bewertung,
int *single_mismatch);
203 #error MP_probe.hxx included twice
void sigma_truncation(double average_fit, double dev)
GenerationDuplicates * get_dup_tree()
void gen_determ_combis(int beg, int len, int &pos_counter, probe_combi_statistic *p)
bool insert(probe_combi_statistic *pcs)
void init_roulette_wheel()
int get_size_sondenarray()
void scale(double a, double b)
double calc_fitness(int len_of_field)
probe ** get_probe_pool()
int calc_index_system3(int *field)
int sub_expected_children(double val)
GenerationDuplicates(int size)
probe_combi_statistic * single_in_generation(probe_combi_statistic *field)
bool ok_for_next_gen(int &len_roul_wheel)
probe_tabs(int *new_group_field=NULp, int *new_non_group_field=NULp, int len_group=0)
void swap(probe **a, probe **b)
void set_probe_combi(int j, probe *f)
Generation * create_next_generation()
void insert_in_result_list(probe_combi_statistic *pcs)
probe_combi_statistic(probe **pc=NULp, probe_tabs *ps=NULp, double exp=0, double fit=0, int lifec=MAXLIFEFORCOMBI)
double calc_expected_children(double average_fitness)
bool insert(probe_combi_statistic *sondenkombi, bool &result, int depth=0)
char ** get_sondenarray()
probe * get_probe_combi(int j)
bool calcFitness(bool use_genetic_algo, double old_avg_fit)
void sort(long feld_laenge)
int get_max_init_for_gen()
probe_combi_statistic * check_duplicates(GenerationDuplicates *dup_tree=NULp)
int get_non_group_tab(int j)
void crossover_Probes(probe_combi_statistic *pcombi2)
ProbeValuation(char **sonden_array, int no_of_sonden, int *bewertung, int *single_mismatch)
void set_act_gen(Generation *g)
probe_combi_statistic * ps
double get_expected_children()
probe_combi_statistic * duplicate()
Generation(int len, int gen_nr)