Skip to content

Commit 80dac2a

Browse files
reverted +1
1 parent 7703d55 commit 80dac2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Framework/Algorithms/src/DiscusMultipleScatteringCorrection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ std::tuple<std::vector<double>, std::vector<double>> DiscusMultipleScatteringCor
13841384
weightsM2[i] += deltas[i] * (weights[i] - weightsMeans[i]);
13851385
// calculate sample SD (M2/n-1)
13861386
// will give NaN for m_events=1, but that's correct
1387-
weightsErrors[i] = sqrt(weightsM2[i] / static_cast<double>(ie + 1));
1387+
weightsErrors[i] = sqrt(weightsM2[i] / static_cast<double>(ie));
13881388
}
13891389

13901390
} else

0 commit comments

Comments
 (0)