Skip to content

Commit

Permalink
Update zfit_physics/models/pdf_tsallis.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Eschle <[email protected]>
  • Loading branch information
ikrommyd and jonas-eschle authored Apr 1, 2024
1 parent d5d7948 commit 2e232c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zfit_physics/models/pdf_tsallis.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def tsallis_pdf_func(x, m, t, n):
tf.debugging.assert_greater(n, znp.asarray(2.0), message="n > 2 is required")

x = z.unstack_x(x)
mt = znp.sqrt(znp.square(m) + znp.square(x))
mt = znp.sqrt(tf.math.squared_diff(m, x))
nt = n * t
c = (n - 1) * (n - 2) / (nt * (nt + (n - 2) * m))
return c * x * znp.power(1 + (mt - m) / nt, -n)
Expand Down

0 comments on commit 2e232c6

Please sign in to comment.