interpolate_vec: Convert a Time-Indexed Vector to Function of Time (i.e. x =...

Description Usage Arguments Value

View source: R/integrate.R

Description

This is just added code to vec_fun()- need to think about better separation of responsiblities

Usage

1
interpolate_vec(x, t = vec_seq_along(x))

Arguments

x

A vector to interpolate

t

An optional time index; if empty, interpolate_vec() will use the index of x

Value

A (thrice) differentiable function interpolating t and x


jesse-smith/covidModel documentation built on Feb. 21, 2022, 3:23 p.m.