public
Cos
— parametric type
Cos{T<:Number, S<:Integer} <: CyclicSchedule
Cos(;λ0, λ1, period)
A cosine wave schedule with period
.
The output conforms to
abs(λ0 - λ1) * (1 + cos(2 * π * (t - 1) / period)) / 2 + min(λ0, λ1)
Arguments
λ0::Number
: the start value
λ1::Number
: the end value
period::Integer
: the period