dStrogatz: Strogatz's model flow

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/strogatz.R

Description

Generates the flow (right hand side of the differential equation) for the Strogatz's model

Usage

1

Arguments

time

The time (in h)

y

The state

parms

Model's parameters (optional, see strogatz_default_parms)

Value

The flow (right hand side of the differential equation)

Author(s)

Pablo Rodríguez-Sánchez (https://pabrod.github.io)

References

Strogatz, S. H. (1987). Human sleep and circadian rhythms: a simple model based on two coupled oscillators. Journal of Mathematical Biology, 25(3), 327–347. http://doi.org/10.1007/BF00276440

See Also

strogatz, strogatz_default_parms

Examples

1
2
3
4
5
6
## Not run: 
t <- 0
y <- c(th1 = 0.1, th2 = 0.2)
dy <- dStrogatz(t, y)

## End(Not run)

PabRod/sleepR documentation built on Dec. 21, 2020, 3:27 p.m.