public
Sin
— parametric type
Sin(range, offset, period)
Sin(;λ0, λ1, period)
A sine wave schedule with period
.
The output conforms to
abs(λ0 - λ1) * abs(sin(π * (t - 1) / period)) + min(λ0, λ1)
Arguments
range == abs(λ0 - λ1)
: the dynamic range (given by the endpoints)offset == min(λ0, λ1)
: the offset / minimum valueperiod::Integer
: the period