Changeset 7336 for branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionGenerator
- Timestamp:
- 01/16/12 17:02:55 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionGenerator/RegressionBenchmark.cs
r7127 r7336 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using System.Linq; … … 62 63 63 64 public static List<double> GenerateSteps(DoubleRange range, double stepWidth) { 64 return Enumerable.Range(0, (int) ((range.End - range.Start) / stepWidth) + 1)65 return Enumerable.Range(0, (int)Math.Round(((range.End - range.Start) / stepWidth) + 1)) 65 66 .Select(i => (range.Start + i * stepWidth)) 66 67 .ToList<double>();
Note: See TracChangeset
for help on using the changeset viewer.