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

View source: R/DAISIE_rates.R

calc_next_timeval_shiftR Documentation

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)

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.

Value

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

Author(s)

Joshua Lambert, Pedro Neves, Shu Xie


DAISIE documentation built on June 2, 2022, 5:07 p.m.