Skip to content

Commit

Permalink
fix std_error function in MCStats class
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Apr 5, 2024
1 parent fabef9b commit f7bf166
Showing 1 changed file with 1 addition and 2 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

0 comments on commit f7bf166

Please sign in to comment.