Skip to content

Commit

Permalink
overload get
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Mar 2, 2023
1 parent 5fb344e commit 7cf05a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adaptation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ using Distributions: StatsFuns
η
c
end
function get(step::PolynomialStep, k::Real)

function Base.get(step::PolynomialStep, k::Real)
return step.c * (k + 1) ^ (-step.η)
end

Expand Down

0 comments on commit 7cf05a4

Please sign in to comment.