diff options
author | Thomas White <taw@physics.org> | 2011-07-07 16:12:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:32 +0100 |
commit | 04736476844994bbb6f7f1dc1547ef99d452453a (patch) | |
tree | f299c1643c335862aea990e94088e69983d3bc47 /src | |
parent | 8ac0fea56a5ef1c0405af178d5da0038052fa045 (diff) |
partial_sim: Add 10% noise to the results
Diffstat (limited to 'src')
-rw-r--r-- | src/partial_sim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c index 96aa0c7c..b0d121be 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -99,6 +99,9 @@ static void calculate_partials(RefList *partial, double osf, } Ip = osf * p * If; + + Ip = gaussian_noise(Ip, Ip/10.0); + set_int(refl, Ip); set_esd_intensity(refl, Ip/10.0); |