solidity/test/yulPhaser
Kamil Śliwak 40a6669538 [yul-phaser] Population: Extract a function for comparing fitness of individuals
- Mostly for readability and convenience. This significantly shortens calls to sort().
- I could define it as Individual::operator< instead but it would be inconsistent with operator== because it does not compare the chromosomes, only fitness. It could result in an unintuitive situation where (a <= b <= a) does not necessarily imply (a == b).
2020-02-18 19:40:37 +01:00
..
Chromosome.cpp [yul-phaser] Population+Chromosome: Better tests for makeRandom() 2020-02-18 19:40:37 +01:00
Common.cpp [yul-phaser] Common: Add chromosomeLengths() 2020-02-18 19:38:55 +01:00
Common.h [yul-phaser] Common: Add chromosomeLengths() 2020-02-18 19:38:55 +01:00
CommonTest.cpp [yul-phaser] Common: Add chromosomeLengths() 2020-02-18 19:38:55 +01:00
Population.cpp [yul-phaser] Population: Extract a function for comparing fitness of individuals 2020-02-18 19:40:37 +01:00
Program.cpp [yul-phaser] Move stripWhitespace() from Program tests to Common 2020-02-18 19:38:55 +01:00
SimulationRNG.cpp [yul-phaser] SimulationRNG: Add bernoulliTrial() 2020-02-16 02:18:21 +01:00