Example #1
0
 internal GeneticSine(Configuration configuration)
     : base(configuration)
 {
     _inputs = new List<Variable>();
     _x = new Variable("x");
     _inputs.Add(_x);
     _sine = new Series("Sine") {ChartType = SeriesChartType.Spline};
     for (double d = LeftLim; d < RightLim; d += Step) {
         _sine.Points.AddXY(d, Math.Sin(d));
     }
 }
Example #2
0
 internal GeneticTest(Configuration configuration)
     : base(configuration)
 {
     _inputs = new List<Variable>();
     _x = new Variable("x");
     _inputs.Add(_x);
     _function = new Series("Test Function", 100) {ChartType = SeriesChartType.Spline};
     for (double d = LeftLim; d < RightLim; d += Step) {
         _function.Points.AddXY(d, 5*Math.Pow(d,2) + 28);
     }
 }