Skip to content

Commit

Permalink
multi-guass_background fix removal
Browse files Browse the repository at this point in the history
  • Loading branch information
HKaras committed Jan 9, 2025
1 parent 80a3b86 commit 93c6c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deerlab/dd_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _multigaussfun(r,r0,sig):
P = np.sqrt(1/(2*np.pi))*1/sig*np.exp(-0.5*((r.T-r0)/sig)**2)
if not np.all(P==0):
# Normalization
P = np.squeeze(P)/np.array([np.trapezoid(c,r) for c in P.T]).reshape(1, -1)
P = np.squeeze(P)/np.array([np.trapezoid(c,r) for c in P.T]).sum()
else:
P = np.squeeze(P)
return P
Expand Down

0 comments on commit 93c6c8e

Please sign in to comment.