Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

FINAL #23

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

FINAL #23

wants to merge 7 commits into from

Conversation

ShSergey
Copy link

FINAL

//4.2 Остановить эволюцию если есть ДНК полностью совпадающее с Goal DNA (hamming distance = 0)
// вычисляем различия hammingDistance чтобы по нему отсортировать
[self willChangeValueForKey:@"bestHammingDistance"];
bestHammingDistance = 100 - [[population objectAtIndex:0] hammingDistance];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Причем здесь число 100? Если подразумевались проценты, то какой смысл от ста процентов отнимать расстояние Хэмминга, которое зависит от длины ДНК?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants