sd_pulse_s: Replicate the behaviour of the PULSE function from Stella

Description Usage Arguments Value Examples

View source: R/if_else_builtins.R

Description

This function must be placed inside the object that will be passed as the argument func to deSolve's ode function.

Usage

1
sd_pulse_s(time, volume, start_p, interval)

Arguments

time

A number

volume

A number

start_p

A number

interval

A number

Value

A number

Examples

1
2
timestep <- function() 0.25 # replicates timestep() from deSolve
sd_pulse_s(2, 1, 2, 0)

readsdr documentation built on Jan. 13, 2021, 11:08 a.m.