Learn R Programming

prophet (version 0.6.1)

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.

Value

Vector y(t).