From: Michael Lindner
To: Dale Eason , James Lerch ,
atm{at}shore.net
Reply-To: Michael Lindner
On Monday 07 July 2003 06:41 pm, Dale Eason wrote:
> With the above in mind, would a 'proper' MC analysis be constrained to only
> longitudinal KE errors, Zone Radius errors, or BOTH???
In the final analysis, all non-systematic errors will result in
longitudinal KE errors. MC analysis won't do anything for systematic errors
(e.g. mask manufactured wrong). So, taking multiple measurements, finding
the mean and std deviation, and doing MC analysis gets you there.
As a C(++) geek, here's the random distribution you want (the so called
"normal" distribution):
#include
#include
double
nrand(double mean, double stddev)
{
double v1;
double v2;
double s;
do {
v1 = 2*drand48() - 1;
v2 = 2*drand48() - 1;
s = v1*v1+v2*v2;
} while (s > 1);
return sqrt(-2*log(s)/s)*v1 * stddev + mean;
}
One more thing. Would you guys (and any other readers who use HTML in
email) please turn off HTML/MIME in your posts to the ATM list? Here's what
the digest subscribers see when you post in HTML:
|