From 04736476844994bbb6f7f1dc1547ef99d452453a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 7 Jul 2011 16:12:04 +0200 Subject: partial_sim: Add 10% noise to the results --- src/partial_sim.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/partial_sim.c') 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); -- cgit v1.2.3