|
1 | 1 | #include "stdio.h" |
2 | 2 | #include "stdlib.h" |
3 | 3 | #include "math.h" |
| 4 | + |
| 5 | +#include "selection.h" |
| 6 | + |
| 7 | +// gen purpose |
| 8 | +void calc_fx(float** pop, int individuals, int genes, float(*fx)(float), float** result){ |
| 9 | + |
| 10 | +} |
| 11 | + |
| 12 | +// Flattening functions |
| 13 | +void lin_flattening(float** pop, int individuals, int genes, float a, float b,float** result){ |
| 14 | + |
| 15 | +} |
| 16 | +void exp_flattening(float** pop, int individuals, int genes, float a, float b,float** result){ |
| 17 | + |
| 18 | +} |
| 19 | +void log_flattening(float** pop, int individuals, int genes, float a, float b,float** result){ |
| 20 | + |
| 21 | +} |
| 22 | +void norm_flattening(float** pop, int individuals, int genes, float a, float b,float** result){ |
| 23 | + |
| 24 | +} |
| 25 | +void sig_flattening(float** pop, int individuals, int genes, float a, float b,float** result){ |
| 26 | + |
| 27 | +} |
| 28 | +void no_flattening(float** pop, int individuals, int genes, float a, float b,float** result){ |
| 29 | + |
| 30 | +} |
| 31 | + |
| 32 | + |
| 33 | +// Selection functions |
| 34 | +void roulette(float** pop, int individuals, int genes, float(*fx)(float),int mode, int** result){ |
| 35 | + |
| 36 | +} |
| 37 | +void rank_tournament_selection(float** pop, int individuals, int genes, float(*fx)(float), int tournament_size, float prob_param, int mode, int** result){ |
| 38 | + |
| 39 | +} |
| 40 | +void rank_selection(float** pop, int individuals, int genes, float(*fx)(float), float prob_param, int mode, int** result){ |
| 41 | + |
| 42 | +} |
| 43 | +void rank_space_selection(float** pop, int individuals, int genes, float(*fx)(float), float prob_param, float div_param, int mode, int** result){ |
| 44 | + |
| 45 | +} |
| 46 | +void boltzmann_selection(float** pop, int individuals, int genes, float(*fx)(float), float temp_param, int mode, int** result){ |
| 47 | + |
| 48 | +} |
0 commit comments