public Series Plot(Genome individual) { int i = 0; var current = new Series("Actual") { ChartType = SeriesChartType.Spline }; for (double x = LeftLim; x < RightLim; x += 0.1, i++) { Inputs[0].Value = x; double actual = individual.Outputs[0].Solve(); current.Points.AddXY(x, actual); } return current; }
internal Genome Crossover(Genome other) { return new Genome(new[] {ReplaceRandomWith(other.GetRandom())}, _god); }