Created
August 16, 2019 03:49
-
-
Save Benzidrine/dd006c2ad00cbecad6ea11e10170adfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public double GetFitness(List<Tuple<Single,Single>> LineValues) | |
{ | |
double Fitness = 0; | |
foreach (var item in LineValues) | |
{ | |
Fitness -= Math.Abs((item.Item2 - ComputationManager.Compute(genes,item.Item1))); | |
} | |
return Fitness; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment