Changeset 13403 for branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions.Views/3.3/SingleObjectiveTestFunctionSolutionView.cs
- Timestamp:
- 11/25/15 23:24:01 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemRefactoring/HeuristicLab.Problems.TestFunctions.Views/3.3/SingleObjectiveTestFunctionSolutionView.cs
r12012 r13403 146 146 pictureBox.Refresh(); 147 147 DoubleMatrix bounds = Content.Bounds; 148 if (bounds == null) bounds = Content. Evaluator.Bounds;148 if (bounds == null) bounds = Content.TestFunction.Bounds; 149 149 double xMin = bounds[0, 0], xMax = bounds[0, 1], yMin = bounds[1 % bounds.Rows, 0], yMax = bounds[1 % bounds.Rows, 1]; 150 150 double xStep = backgroundImage.Width / (xMax - xMin), yStep = backgroundImage.Height / (yMax - yMin); … … 174 174 backgroundImage = new Bitmap(pictureBox.Width, pictureBox.Height); 175 175 DoubleMatrix bounds = Content.Bounds; 176 if (bounds == null) bounds = Content. Evaluator.Bounds;176 if (bounds == null) bounds = Content.TestFunction.Bounds; 177 177 double xMin = bounds[0, 0], xMax = bounds[0, 1], yMin = bounds[1 % bounds.Rows, 0], yMax = bounds[1 % bounds.Rows, 1]; 178 178 double xStep = (xMax - xMin) / backgroundImage.Width, yStep = (yMax - yMin) / backgroundImage.Height; … … 181 181 for (int i = 0; i < backgroundImage.Width; i++) 182 182 for (int j = 0; j < backgroundImage.Height; j++) { 183 points[j, i] = Content. Evaluator.Evaluate2D(xMin + i * xStep, yMin + j * yStep);183 points[j, i] = Content.TestFunction.Evaluate2D(xMin + i * xStep, yMin + j * yStep); 184 184 if (points[j, i] < minPoint) minPoint = points[j, i]; 185 185 if (points[j, i] > maxPoint) maxPoint = points[j, i];
Note: See TracChangeset
for help on using the changeset viewer.