piecewise_linear: Evaluate the piecewise linear function.
Description
Evaluate the piecewise linear function.
Usage
piecewise_linear(t, deltas, k, m, changepoint.ts)
Arguments
- t
Vector of times on which the function is evaluated.
- deltas
Vector of rate changes at each changepoint.
- k
Float initial rate.
- m
Float initial offset.
- changepoint.ts
Vector of changepoint times.