fn sample_gaussian_scale<R: Rng>(rng: &mut R) -> Option<f64>
Expand description
Samples a scale factor from a pseudo-Gaussian distribution centered around 1.0.
- Select a random standard deviation multiplier from a predefined set.
- Approximates a standard normal distribution using the Irwin-Hall method (sum of uniform samples).
- Scales the normal value by the chosen standard deviation multiplier, divided by 3 to get standard deviation.
- Adds 1.0 to center the scale factor around 1.0 (no mutation).
Returns a scale factor that, when applied to a number, mimics Gaussian noise.