Example #1
0
 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;
 }
Example #2
0
 internal Genome Crossover(Genome other)
 {
     return new Genome(new[] {ReplaceRandomWith(other.GetRandom())}, _god);
 }