if N = # data points > 1000, take N points to calculate the theory vector, otherwise take 1000 points

This commit is contained in:
nemu 2009-03-05 12:51:39 +00:00
parent 3589b3553c
commit 73ac3d8d75

View File

@ -341,7 +341,13 @@ bool PRunNonMusr::PrepareViewData()
}
// cout << endl << ">> after the xmin/xmax loop." << endl;
double xStep = (xMax-xMin)/1000.0;
// typically take 1000 points to calculate the theory, except if there are more data points, than take that number
double xStep;
if (fData.fX.size() > 1000.0)
xStep = fData.fX.size();
else
xStep = (xMax-xMin)/1000.0;
double xx = xAbsMin;
do {
// fill x-vector