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