block_interpolate | R Documentation |
This essentially replicates the interpolate(_, "constant") function of odin, but returns a time series of values at the requested times t. The implementation for 1D vector x's is not finished and should be checked before usage, alternatively x can be replaced with indexes from x's time dimension.
block_interpolate(t, x, tt_x)
t |
Vector of times we want parameter values for. |
x |
Vector (list or matrix or array) of parameter values that correspond to each tt_x. |
tt_x |
Vector of times at which the parameter x changes. |
A vector of values for parameter x that correspond to the times specified by t
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.