- Timestamp:
- 10/04/12 12:58:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/ValueGenerator.cs
r8224 r8734 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.