- Timestamp:
- 07/27/21 13:30:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Friedman/FriedmanRandomFunction.cs
r17931 r18032 86 86 var y = GenerateRandomFunction(random, data); 87 87 88 var targetSigma = y.StandardDeviation();89 var noisePrng = new NormalDistributedRandom(random, 0, targetSigma * Math.Sqrt(noiseRatio / (1.0 - noiseRatio)));88 //var targetSigma = y.StandardDeviation(); 89 //var noisePrng = new NormalDistributedRandom(random, 0, targetSigma * Math.Sqrt(noiseRatio / (1.0 - noiseRatio))); 90 90 91 data.Add(y.Select(t => t + noisePrng.NextDouble()).ToList()); 91 //data.Add(y.Select(t => t + noisePrng.NextDouble()).ToList()); 92 93 data.Add(ValueGenerator.GenerateNoise(y, random, noiseRatio)); 92 94 93 95 return data;
Note: See TracChangeset
for help on using the changeset viewer.