Skip to content

Commit

Permalink
revert last two commits
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrommyd committed Apr 1, 2024
1 parent dc7de44 commit 0213c50
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zfit_physics/models/pdf_novosibirsk.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ def novosibirsk_pdf(x, peak, width, tail):
width_zero = (2.0 / xi) * znp.arcsinh(tail * xi * 0.5)
width_zero2 = width_zero**2
exponent = (-0.5 / width_zero2 * log_arg**2) - (width_zero2 * 0.5)
gauss = -0.5 * ((x - peak) / width) ** 2

gauss_exponent = -0.5 * ((x - peak) / width) ** 2
exponents = znp.where(cond1, gauss_exponent, znp.where(cond2, 0.0, exponent))
return znp.exp(exponents)
return znp.where(cond1, gauss, znp.where(cond2, 0.0, znp.exp(exponent)))


def novosibirsk_integral(limits: ztyping.SpaceType, params: dict, model) -> tf.Tensor:
Expand Down

0 comments on commit 0213c50

Please sign in to comment.