Changeset 17805 for trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Feynman/Feynman71.cs
- Timestamp:
- 12/30/20 09:31:09 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Feynman/Feynman71.cs
r17678 r17805 28 28 public override string Name { 29 29 get { 30 return string.Format("II.21.32 q/(4*pi*epsilon*r*(1-v/c)) | {0} samples | {1}", trainingSamples,30 return string.Format("II.21.32 q/(4*pi*epsilon*r*(1-v/c)) | {0}", 31 31 noiseRatio == null ? "no noise" : string.Format(System.Globalization.CultureInfo.InvariantCulture, "noise={0:g}",noiseRatio)); 32 32 } … … 74 74 if (noiseRatio != null) { 75 75 var Volt_noise = new List<double>(); 76 var sigma_noise = (double) noiseRatio* Volt.StandardDeviationPop();76 var sigma_noise = (double) Math.Sqrt(noiseRatio.Value) * Volt.StandardDeviationPop(); 77 77 Volt_noise.AddRange(Volt.Select(md => md + NormalDistributedRandom.NextDouble(rand, 0, sigma_noise))); 78 78 data.Remove(Volt);
Note: See TracChangeset
for help on using the changeset viewer.