Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Júlio Hoffimann <[email protected]>
  • Loading branch information
eliascarv and juliohm authored May 23, 2024
1 parent eb41cb3 commit 81d081e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/variogram/matern.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function (γ::MaternVariogram)(h::Len)

# shift lag by machine precision to
# avoid explosion at the origin
h′ = h′ + eps(typeof(h′))
h′ += eps(typeof(h′))

δ = (2ν) * 3(h′ / r′)
Β = besselk(ν, δ)
Expand Down
2 changes: 1 addition & 1 deletion src/variogram/sinehole.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function (γ::SineHoleVariogram)(h::Len)

# shift lag by machine precision to
# avoid explosion at the origin
h′ = h′ + eps(typeof(h′))
h′ += eps(typeof(h′))
c = oftype(h′, π)

(s - n) * (1 - sin(c * h′ / r′) / (c * h′ / r′)) + (h′ > 0) * n
Expand Down

0 comments on commit 81d081e

Please sign in to comment.