* @return new Generation of Chromosome's that passed the mutation
*/
Generation<_Chromosome> mutate(Generation<_Chromosome> _generation) {
* @return new Generation of Chromosome's that passed the mutation
*/
Generation<_Chromosome> mutate(Generation<_Chromosome> _generation) {
- const unsigned int generationSize = _generation.get().size();
- const unsigned int chromosomeSize = _generation.get()[0].get().size();
+ const unsigned int generationSize = _generation.size();
+ const unsigned int chromosomeSize = _generation[0].size();
vector<_Chromosome> newGeneration;
for (unsigned int i = 0; i < generationSize; i++) {
MutationChanceType random = (rand() % 10000) / 10000.0;
vector<_Chromosome> newGeneration;
for (unsigned int i = 0; i < generationSize; i++) {
MutationChanceType random = (rand() % 10000) / 10000.0;