Changeset 17805 for trunk/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Feynman/FeynmanBonus12.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/FeynmanBonus12.cs
r17678 r17805 29 29 get { 30 30 return string.Format( 31 "Goldstein 8.56: sqrt((p-q*A_vec)**2*c**2+m**2*c**4)+q*Volt | {0} samples | {1}",32 trainingSamples,noiseRatio == null ? "no noise" : string.Format(System.Globalization.CultureInfo.InvariantCulture, "noise={0:g}",noiseRatio));31 "Goldstein 8.56: sqrt((p-q*A_vec)**2*c**2+m**2*c**4)+q*Volt | {0}", 32 noiseRatio == null ? "no noise" : string.Format(System.Globalization.CultureInfo.InvariantCulture, "noise={0:g}",noiseRatio)); 33 33 } 34 34 } … … 78 78 if (noiseRatio != null) { 79 79 var E_n_noise = new List<double>(); 80 var sigma_noise = (double) noiseRatio* E_n.StandardDeviationPop();80 var sigma_noise = (double) Math.Sqrt(noiseRatio.Value) * E_n.StandardDeviationPop(); 81 81 E_n_noise.AddRange(E_n.Select(md => md + NormalDistributedRandom.NextDouble(rand, 0, sigma_noise))); 82 82 data.Remove(E_n);
Note: See TracChangeset
for help on using the changeset viewer.