Description Usage Arguments Value
View source: R/multi_stage_ODE.R
Solve an ODE with time-varying parameter msp (multi stage parameter) and time fixed parameters parameters.
1 | multi_stage_ODE(U0, func, var_names, par_fixed, msp, msp_name, L, time_step)
|
U0 |
named list. Initial conditions at time 0 |
func |
function. Given U array of variables, func(U;parameters) = dU/dt |
var_names |
list of char. The names of the variable as in func |
par_fixed |
named list. The format is ('name'=value) |
msp |
array like. Contains all the values assumed by the time variable parameters |
msp_name |
char. Name of the msp as appearing in func |
L |
array like. Contains the extreme of use of the components of msp. msp[n] is the msp in use from L[n-1] to L[n]. The last component of L is the final point of integration |
time_step |
float. Step of integration |
a list:
dataframe. Solution to ODE evaluated at $times
array like. Points of evaluation of solution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.