** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: imagefile.cpp,v 1.17 2000/12/06 01:46:43 kevin Exp $
+** $Id: imagefile.cpp,v 1.18 2000/12/16 02:31:00 kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
for (int iy = 0; iy < ny; iy++) {
int b = static_cast<int>((((v[ix4][iy] - min) / spread) * (nbin - 1)) + 0.5);
hist[b]++;
- double diff = (v[ix][iy] - mean);
+ double diff = (v[ix4][iy] - mean);
stddev += diff * diff;
}
}