diff options
Diffstat (limited to 'src/fitnessfunction.h')
| -rw-r--r-- | src/fitnessfunction.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/fitnessfunction.h b/src/fitnessfunction.h new file mode 100644 index 0000000..c41f733 --- /dev/null +++ b/src/fitnessfunction.h | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | #ifndef GENETIC_FITNESS_FUNCTION_H | ||
| 2 | #define GENETIC_FITNESS_FUNCTION_H | ||
| 3 | |||
| 4 | namespace Genetic | ||
| 5 | { | ||
| 6 | class Phenotype; | ||
| 7 | |||
| 8 | class FitnessFunction | ||
| 9 | { | ||
| 10 | public: | ||
| 11 | FitnessFunction(); | ||
| 12 | virtual ~FitnessFunction(); | ||
| 13 | |||
| 14 | virtual double operator()( Phenotype *pTest )=0; | ||
| 15 | }; | ||
| 16 | }; | ||
| 17 | |||
| 18 | #endif | ||
