Changeset 17245 for branches/3027-NormalDistribution
- Timestamp:
- 09/11/19 13:26:24 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3027-NormalDistribution/HeuristicLab.Random/3.3/NormalDistributedRandomPolar.cs
r17244 r17245 155 155 v = uniformRandom.NextDouble() * 2 - 1; 156 156 s = u * u + v * v; 157 } while (s > =1 || s == 0);157 } while (s > 1 || s == 0); 158 158 s = Math.Sqrt(-2.0 * Math.Log(s) / s); 159 159 return mu + sigma * u * s;
Note: See TracChangeset
for help on using the changeset viewer.