Learn R Programming

readsdr (version 0.3.0)

sd_pulse_s: Replicate the behaviour of the PULSE function from Stella

Description

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

Usage

sd_pulse_s(time, volume, start_p, interval)

Value

A number

Arguments

time

A number

volume

A number

start_p

A number

interval

A number

Examples

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

Run the code above in your browser using DataLab