View source: R/dsdive.obs.sample.offsets.R
Sampler uses a piecewise quadratic polynomial approximation to the log of the full conditional posterior. Note that this sampler will only sample one offset at a time.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
dsobs.aligned |
|
dsobs.unaligned |
|
offset |
value of current t0 offset |
offset.tf |
value of current tf offset |
t.stages |
stage transition times for the dive |
P.raw |
list of continuous time probability transition matrices, and components. |
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. |
tstep |
Time between observations in |
max.width |
The t0 and tf offsets are updated with a piecewise proposal distribution. This parameter controls the maximum width of the intervals for the proposal distribution. This is a tuning parameter that controls the numerical stability of the proposal distribution, which is sampled via inverse CDF techniques. |
prior.params |
|
sample.start |
|
debug |
|
lpapprox |
(Optional) Object containing the piecewise-quadratic
approximation to the log-posterior used to propose model parameters.
If |
output.lpapprox |
# @example examples/dsdive.obs.sample.offsets.R |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.