diff options
Diffstat (limited to 'src/explicitsimulation.h')
-rw-r--r-- | src/explicitsimulation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/explicitsimulation.h b/src/explicitsimulation.h index 7713c71..e71b489 100644 --- a/src/explicitsimulation.h +++ b/src/explicitsimulation.h | |||
@@ -22,11 +22,14 @@ namespace Genetic | |||
22 | virtual ~ExplicitSimulation(); | 22 | virtual ~ExplicitSimulation(); |
23 | 23 | ||
24 | void timestep(); | 24 | void timestep(); |
25 | const Population &getPopulation() const { return xPop; } | ||
25 | 26 | ||
26 | Genetic::PhenotypeId selectWeighted(); | 27 | Genetic::PhenotypeId selectWeighted(); |
27 | 28 | ||
28 | double getMinFitness() const { return dMinFitness; } | 29 | double getMinFitness() const { return dMinFitness; } |
29 | double getMaxFitness() const { return dMaxFitness; } | 30 | double getMaxFitness() const { return dMaxFitness; } |
31 | double getFitness( Genetic::PhenotypeId id ) const | ||
32 | { return hFitness.get( id ); } | ||
30 | 33 | ||
31 | protected: | 34 | protected: |
32 | void updateFitness(); | 35 | void updateFitness(); |