w: time points at which the density is to be evaluated
t: length of the time interval
lamM: rate parameter of the exponentially distributed duration in moving
lamR: rate parameter of the exponentially distributed duration in resting
s0: initial state. If NULL, the unconditional density is returned; otherwise, it is one of "m" or "s", standing for moving and resting, respectively, and the conditional density is returned given the initial state.
Returns
a vector of the density evaluated at w.
Details
dtm returns the density for time in moving; dtr returns the density for time in resting.
Yan, J., Chen, Y., Lawrence-Apfel, K., Ortega, I. M., Pozdnyakov, V., Williams, S., and Meyer, T. (2014) A moving-resting process with an embedded Brownian motion for animal movements. Population Ecology. 56(2): 401--415.