Changeset 9007 for trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Nguyen/NguyenFunctionFive.cs
- Timestamp:
- 12/06/12 14:13:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Nguyen/NguyenFunctionFive.cs
r8825 r9007 43 43 protected override int TrainingPartitionStart { get { return 0; } } 44 44 protected override int TrainingPartitionEnd { get { return 20; } } 45 protected override int TestPartitionStart { get { return 2 50; } }46 protected override int TestPartitionEnd { get { return 350; } }45 protected override int TestPartitionStart { get { return 20; } } 46 protected override int TestPartitionEnd { get { return 520; } } 47 47 48 48 protected override List<List<double>> GenerateValues() { 49 49 List<List<double>> data = new List<List<double>>(); 50 data.Add(ValueGenerator.GenerateUniformDistributedValues(5 00, -1, 1).ToList());50 data.Add(ValueGenerator.GenerateUniformDistributedValues(520, -1, 1).ToList()); 51 51 52 52 double x; … … 54 54 for (int i = 0; i < data[0].Count; i++) { 55 55 x = data[0][i]; 56 results.Add(Math.Sin( Math.Pow(x, 2)) * Math.Cos(x) - 1);56 results.Add(Math.Sin(x * x) * Math.Cos(x) - 1); 57 57 } 58 58 data.Add(results);
Note: See TracChangeset
for help on using the changeset viewer.