Changeset 15281 for branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionEleven.cs
- Timestamp:
- 07/23/17 11:17:18 (7 years ago)
- Location:
- branches/Async
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
-
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Keijzer/KeijzerFunctionEleven.cs
r12292 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 47 48 protected override int TestPartitionStart { get { return 20; } } 48 49 protected override int TestPartitionEnd { get { return 20 + (601 * 601); } } 50 public int Seed { get; private set; } 49 51 52 public KeijzerFunctionEleven() : this((int)System.DateTime.Now.Ticks) { 53 } 54 public KeijzerFunctionEleven(int seed) : base() { 55 Seed = seed; 56 } 50 57 protected override List<List<double>> GenerateValues() { 51 58 List<List<double>> data = new List<List<double>>(); … … 54 61 55 62 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList(); 56 63 var rand = new MersenneTwister((uint)Seed); 57 64 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 58 data.Add(ValueGenerator.GenerateUniformDistributedValues( 20, -3, 3).ToList());65 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 20, -3, 3).ToList()); 59 66 data[i].AddRange(combinations[i]); 60 67 }
Note: See TracChangeset
for help on using the changeset viewer.