Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/03/12 09:29:07 (12 years ago)
Author:
sforsten
Message:

#1784:

  • ProblemInstanceProvider are sorted now
  • the return values of ValueGenerator have been changed to !IEnumerable
  • changes have been applied to classes which are using the ValueGenerator
  • change of the cast in ProblemInstanceProviderViewGeneric and !importButton.Enable is set now in SetEnabledStateOfControls
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/KotanchekFunction.cs

    r7682 r7698  
    4949      List<List<double>> data = new List<List<double>>();
    5050
    51       List<double> oneVariableTestData = ValueGenerator.GenerateSteps(-0.2, 4.2, 0.1);
     51      List<double> oneVariableTestData = ValueGenerator.GenerateSteps(-0.2, 4.2, 0.1).ToList();
    5252      List<List<double>> testData = new List<List<double>>() { oneVariableTestData, oneVariableTestData };
    53       testData = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData);
     53      var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList<IEnumerable<double>>();
    5454      for (int i = 0; i < AllowedInputVariables.Count(); i++) {
    55         data.Add(ValueGenerator.GenerateUniformDistributedValues(1000, 0.3, 4));
    56         data[i].AddRange(testData[i]);
     55        data.Add(ValueGenerator.GenerateUniformDistributedValues(1000, 0.3, 4).ToList());
     56        data[i].AddRange(combinations[i]);
    5757      }
    5858
Note: See TracChangeset for help on using the changeset viewer.