Changeset 14305 for stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/VladislavlevaInstanceProvider.cs
- Timestamp:
- 09/23/16 12:57:27 (8 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14228-14229
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis merged: 14228-14229
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/VladislavlevaInstanceProvider.cs
r14186 r14305 22 22 using System; 23 23 using System.Collections.Generic; 24 using HeuristicLab.Random; 24 25 25 26 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 38 39 } 39 40 41 public int Seed { get; private set; } 42 43 public VladislavlevaInstanceProvider() : this((int)DateTime.Now.Ticks) { } 44 public VladislavlevaInstanceProvider(int seed) : base() { 45 Seed = seed; 46 } 47 40 48 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 41 49 List<IDataDescriptor> descriptorList = new List<IDataDescriptor>(); 42 descriptorList.Add(new KotanchekFunction()); 50 var rand = new MersenneTwister((uint)Seed); 51 descriptorList.Add(new KotanchekFunction(rand.Next())); 43 52 descriptorList.Add(new SalutowiczFunctionOneDimensional()); 44 53 descriptorList.Add(new SalutowiczFunctionTwoDimensional()); 45 descriptorList.Add(new UnwrappedBallFunctionFiveDimensional( ));46 descriptorList.Add(new RationalPolynomialThreeDimensional( ));47 descriptorList.Add(new SineCosineFunction( ));48 descriptorList.Add(new RippleFunction( ));49 descriptorList.Add(new RationalPolynomialTwoDimensional( ));54 descriptorList.Add(new UnwrappedBallFunctionFiveDimensional(rand.Next())); 55 descriptorList.Add(new RationalPolynomialThreeDimensional(rand.Next())); 56 descriptorList.Add(new SineCosineFunction(rand.Next())); 57 descriptorList.Add(new RippleFunction(rand.Next())); 58 descriptorList.Add(new RationalPolynomialTwoDimensional(rand.Next())); 50 59 return descriptorList; 51 60 }
Note: See TracChangeset
for help on using the changeset viewer.