Description Usage Arguments Value Examples
View source: R/dsdive.fwdsample.fixedstage.R
The method will simulate dive trajectories from initial conditions until the
trajectory is observable at tf
, or a maximum number of transitions
has been exceeded. The dive segment will only be simulated using parameters
for a single dive stage s0
.
1 2 3 4 5 6 7 8 9 10 11 12 | dsdive.fwdsample.fixedstage(
depth.bins,
d0,
beta,
lambda,
t0,
tf,
steps.max,
dur0 = NULL,
nsteps = NULL,
s0
)
|
depth.bins |
n x 2 Matrix that defines the depth bins. The first column defines the depth at the center of each depth bin, and the second column defines the half-width of each bin. |
d0 |
the depth bin index at which the dive segment begins |
beta |
Directional preference model parameters. See
|
lambda |
Diving rate model parameters. See
|
t0 |
Initial time for the dive segment |
tf |
Final time for the dive segment |
steps.max |
maximum number of transitions to sample before stopping,
regardless of whether |
dur0 |
time spent at location |
nsteps |
if |
s0 |
dive stage in which forward simulation begins |
A dsdive
object, which is a list
with the following
vectors:
Record of which depth bin indices the trajectory visited
Record of amount of time spent in each depth bin
The time at which each depth bin was entered
The stage at which each depth bin was entered
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.