piecewise_linear: Evaluate the piecewise linear function.

Description Usage Arguments Value

Description

Evaluate the piecewise linear function.

Usage

1
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.

Value

Vector y(t).


prophet documentation built on March 30, 2021, 5:05 p.m.