Skip to content

Commit

Permalink
fix HagerZhang bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed82008 committed Nov 1, 2018
1 parent 582ed2f commit a4ab100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hagerzhang.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function (ls::HagerZhang)(ϕ, ϕdϕ,
# The value is higher, but the slope is downward, so we must
# have crested over the peak. Use bisection.
ib = length(alphas)
ia = ib - 1
ia = 1
if c alphas[ib] || slopes[ib] >= zeroT
error("c = ", c)
end
Expand Down

0 comments on commit a4ab100

Please sign in to comment.