Changeset 8842 for branches/DataAnalysisCSVImport/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/ValueGenerator.cs
- Timestamp:
- 10/23/12 16:29:21 (11 years ago)
- Location:
- branches/DataAnalysisCSVImport/HeuristicLab.Problems.Instances.DataAnalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysisCSVImport/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
-
branches/DataAnalysisCSVImport/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/ValueGenerator.cs
r8224 r8842 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Random; 26 27 … … 40 41 if (stepWidth <= 0) throw new ArgumentException("stepwith must be larger than zero.", "stepWidth"); 41 42 double x = start; 42 while (x <= end) { 43 // x<=end could skip the last value because of numerical problems 44 while (x < end || x.IsAlmost(end)) { 43 45 yield return x; 44 46 x += stepWidth;
Note: See TracChangeset
for help on using the changeset viewer.