Changeset 17805 for trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Feynman/Feynman36.cs
- Timestamp:
- 12/30/20 09:31:09 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Feynman/Feynman36.cs
r17678 r17805 28 28 public override string Name { 29 29 get { 30 return string.Format("I.34.14 (1+v/c)/sqrt(1-v**2/c**2)*omega_0 | {0} samples | {1}",31 trainingSamples,noiseRatio == null ? "no noise" : string.Format(System.Globalization.CultureInfo.InvariantCulture, "noise={0:g}",noiseRatio));30 return string.Format("I.34.14 (1+v/c)/sqrt(1-v**2/c**2)*omega_0 | {0}", 31 noiseRatio == null ? "no noise" : string.Format(System.Globalization.CultureInfo.InvariantCulture, "noise={0:g}",noiseRatio)); 32 32 } 33 33 } … … 70 70 if (noiseRatio != null) { 71 71 var omega_noise = new List<double>(); 72 var sigma_noise = (double) noiseRatio* omega.StandardDeviationPop();72 var sigma_noise = (double) Math.Sqrt(noiseRatio.Value) * omega.StandardDeviationPop(); 73 73 omega_noise.AddRange(omega.Select(md => md + NormalDistributedRandom.NextDouble(rand, 0, sigma_noise))); 74 74 data.Remove(omega);
Note: See TracChangeset
for help on using the changeset viewer.