Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrommyd committed Mar 19, 2024
1 parent fac39dc commit 9765759
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions zfit_physics/models/pdf_cruijff.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ def cruijff_pdf_func(x, mu, sigmal, alphal, sigmar, alphar):
"""
cond = znp.less(x, mu)

# compute only once (in graph this _may_ be optimized anyways, but surely not in eager)
xminmu = (x - mu)
tleft = znp.square(xminmu / sigmal)
tright = znp.square(xminmu / sigmar)
exponent = znp.where(
cond,
tleft / (1 + alphal * tleft),
tright / (1 + alphar * tright),
)
value = znp.exp(-0.5 * exponent)
# compute only once (in graph this _may_ be optimized anyways, but surely not in eager)
xminmu = x - mu
tleft = znp.square(xminmu / sigmal)
tright = znp.square(xminmu / sigmar)
exponent = znp.where(
cond,
tleft / (1 + alphal * tleft),
tright / (1 + alphar * tright),
)
value = znp.exp(-0.5 * exponent)
return value


Expand Down

0 comments on commit 9765759

Please sign in to comment.