private
_sinexp
— function
SinExp(range, offset, period, γ)
SinExp(;λ0, λ1, period, γ)
A sine wave schedule with period
and an exponentially decaying amplitude.
The output conforms to
abs(λ0 - λ1) * Sin(t) * γ^(t - 1) + min(λ0, λ1)
where Sin(t)
is abs(sin(π * (t - 1) / period))
(see Sin
).
Arguments
range == abs(λ0 - λ1)
: the dynamic range (given by the endpoints)offset == min(λ0, λ1)
: the offset / minimum valueperiod::Integer
: the periodγ
: the decay rate