Learn R Programming

DAISIE (version 4.5.0)

calc_next_timeval_shift: Calculates when the next timestep will be, and if a shift has occured.

Description

Calculates when the next timestep will be, and if a shift has occured.

Usage

calc_next_timeval_shift(max_rates, timeval, dynamic_shift_times, total_time)

Value

named list with numeric vector containing the time of the next timestep and the change in time.

Arguments

max_rates

named list of max rates as returned by update_rates.

timeval

current time of simulation

dynamic_shift_times

numeric vector of times of rate shifts.

Author

Joshua Lambert, Pedro Neves, Shu Xie