Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/16/12 17:02:55 (13 years ago)
Author:
sforsten
Message:

#1669:

  • bug fixed in RegressionBenchmark
  • adapted trainings partitions of some benchmark problems
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionGenerator/RegressionBenchmark.cs

    r7127 r7336  
    2020#endregion
    2121
     22using System;
    2223using System.Collections.Generic;
    2324using System.Linq;
     
    6263
    6364    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))
    6566                                      .Select(i => (range.Start + i * stepWidth))
    6667                                      .ToList<double>();
Note: See TracChangeset for help on using the changeset viewer.