make_forcing_function: Makes Forcing Function From Times and Values

Description Usage Arguments Value

View source: R/ubiquity.r

Description

Takes a list of times, values, and an interpolation method

Usage

1
make_forcing_function(times, values, type, output_times)

Arguments

times

time values for the forcing function

values

magnitude for each time (same length of time)

type

string indicating the type of forcing function can be one of the following:

  • "step" for constant values that switch to new values at the times

  • "linear" to linearly interpolate between the points

output_times

vector of simulation output times

Value

matrix with two columns: first column is a vector of times and the second column is a vector of values


john-harrold/ubiquity documentation built on Dec. 5, 2019, 3:29 p.m.