Warning: Trying to access array offset on value of type null in /home/site/wwwroot/lib/plugins/move/action/rename.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/lib/plugins/move/action/rename.php:42) in /home/site/wwwroot/inc/common.php on line 1955

Warning: Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/lib/plugins/move/action/rename.php:42) in /home/site/wwwroot/inc/actions.php on line 38
noise_simulation [topas wiki]

User Tools

Site Tools


noise_simulation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
noise_simulation [2013/05/02 15:30] alancoelhonoise_simulation [2022/11/03 15:08] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Noise Simulation - Version 5 ======
 +
 +To add noise to a simulated pattern (e.g. use the "simulate pattern from cif" command in jEdit menus you can use the function Rand_Normal(Mean, Std_Deviation); for example:
 +
 +<code topas>   xdd_out FILE load out_record out_fmt out_eqn
 +   {
 +       " %11.6f " = X;
 +       " %11.6f\n" = Rand_Normal(Ycalc, Sqrt(Ycalc));
 +   }</code>
 +
 +To test Rand_Normal then try:
 +
 +<code topas>iters 0
 +yobs_eqn = 100;
 +        min 0.001
 +        max 100
 +        del .001
 +        
 +   xdd_out aac.txt load out_record out_fmt out_eqn
 +   {
 +       " %11.6f\n" = Abs(Rand_Normal(0, 1));
 +   }</code>
 +
 +The data in AAC.TXT should obey the following:
 +
 +
 +               Sqrt[ Sum(AAC.TXT)^2 / 100000 ] = 1
 +
 +
  
noise_simulation.txt · Last modified: 2022/11/03 15:08 by 127.0.0.1