create_approximation: Creates linear interpolation

View source: R/aux_functions.R

create_approximationR Documentation

Creates linear interpolation

Description

Creates linear interpolation

Usage

create_approximation(x, y, start = 0)

Arguments

x

time points

y

values to interpolate

start

rescales the x to x-start (useful to chain interventions properly)

Value

An interpolation function, like the one created by approxfun (stats package)


SwissTPH/VivaxModelR documentation built on Feb. 14, 2024, 11:27 a.m.