Skip to content

Commit

Permalink
Merge pull request #646 from HEXRD/goodness-of-fit
Browse files Browse the repository at this point in the history
redefining goodness of fit for wppf module
  • Loading branch information
saransh13 committed May 31, 2024
2 parents 514c7c9 + db498d7 commit ae0a06d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hexrd/wppf/peakfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ def calc_rwp(spectrum_sim,

# Rwp and goodness of fit parameters
if Rexp > 0.:
gofF = wss/(N-P)
gofF = Rwp/Rexp
else:
gofF = np.inf

Expand Down

0 comments on commit ae0a06d

Please sign in to comment.