Skip to content

Commit 48d528b

Browse files
committed
"fix" for MCStats
1 parent c74471a commit 48d528b

File tree

2 files changed

+206
-205
lines changed

2 files changed

+206
-205
lines changed

validphys2/src/validphys/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,8 @@ def central_value(self):
790790
return np.mean(self.data, axis=0)
791791

792792
def std_error(self):
793-
return np.std(self.data, axis=0)
793+
# ddof == 1 to match libNNPDF behaviour
794+
return np.std(self.data, ddof=1, axis=0)
794795

795796
def moment(self, order):
796797
return np.mean(np.power(self.data-self.central_value(),order), axis=0)

0 commit comments

Comments
 (0)