if N = # data points > 1000, take N points to calculate the theory vector, otherwise take 1000 points
This commit is contained in:
parent
3589b3553c
commit
73ac3d8d75
@ -341,7 +341,13 @@ bool PRunNonMusr::PrepareViewData()
|
|||||||
}
|
}
|
||||||
// cout << endl << ">> after the xmin/xmax loop." << endl;
|
// 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;
|
double xx = xAbsMin;
|
||||||
do {
|
do {
|
||||||
// fill x-vector
|
// fill x-vector
|
||||||
|
Loading…
x
Reference in New Issue
Block a user