Skip to content

Commit

Permalink
Merge pull request #2036 from NNPDF/rs-quickfix2
Browse files Browse the repository at this point in the history
fix std_error function in MCStats class
  • Loading branch information
scarlehoff authored Apr 6, 2024
2 parents f60ce60 + a3c2628 commit 2e920f6
Show file tree
Hide file tree
Showing 2 changed files with 205 additions and 206 deletions.
3 changes: 1 addition & 2 deletions validphys2/src/validphys/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,7 @@ class MCStats(Stats):
"""Result obtained from a Monte Carlo sample"""

def std_error(self):
# ddof == 1 to match legacy libNNPDF behaviour
return np.std(self.error_members(), ddof=1, axis=0)
return np.std(self.error_members(), axis=0)

def moment(self, order):
return np.mean(np.power(self.error_members() - self.central_value(), order), axis=0)
Expand Down
Loading

0 comments on commit 2e920f6

Please sign in to comment.