broken_line | R Documentation |
For a given x
, returns the value on a piecewise
linear function as defined by
vector b
of its break points and associated
values v
.
It is typically used for relative factor.for time-dependent
parameters. For example: if n = 2, broken line returns below v values:
t < t1: returns v1
t > t2: returns v2
t1 < t < t2: returns the line from (t1,v1) to (t2,v2)
broken_line(x, b, v)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.