Changeset 17805 for trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Feynman/FeynmanBonus3.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/FeynmanBonus3.cs
r17678 r17805 29 29 get { 30 30 return string.Format( 31 "Compton Scattering: E_n/(1+E_n/(m*c**2)*(1-cos(theta))) | {0} samples | {1}", trainingSamples,31 "Compton Scattering: E_n/(1+E_n/(m*c**2)*(1-cos(theta))) | {0}", 32 32 noiseRatio == null ? "no noise" : string.Format(System.Globalization.CultureInfo.InvariantCulture, "noise={0:g}",noiseRatio)); 33 33 } … … 73 73 if (noiseRatio != null) { 74 74 var K_noise = new List<double>(); 75 var sigma_noise = (double) noiseRatio* K.StandardDeviationPop();75 var sigma_noise = (double) Math.Sqrt(noiseRatio.Value) * K.StandardDeviationPop(); 76 76 K_noise.AddRange(K.Select(md => md + NormalDistributedRandom.NextDouble(rand, 0, sigma_noise))); 77 77 data.Remove(K);
Note: See TracChangeset
for help on using the changeset viewer.