Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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


prophet

Automatic Forecasting Procedure

v1.0
MIT + file LICENSE
Authors
Sean Taylor [cre, aut], Ben Letham [aut]
Initial release
2021-03-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.