Description Usage Arguments Value Examples
update_bearing_param
returns a conditional Gibbs sample of the bearing parameters.
1 | update_bearing_param(fixed_constant, refined_path)
|
fixed_constant |
List with components:
|
refined_path |
List with components:
|
Vector, sampled bearing variances for each behavioural state.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | const <- list(num_states = 3,
turn_prec_prior = list(rate = c(1, 2, 3),
shape = c(0.1, 0.2, 0.3)))
path <- list(times = 1:20,
behavs = c(1, 1, 1, 1, 2, 2, 2, 3, 1, 1, 3, 3, 3, 2, 2, 2, 2, 2, 2),
bearings = cumsum(rnorm(19, 0, 1)))
set.seed(1234)
update_bearing_param(const, path)
# [1] 4.8920033 0.8789057 1.7115489
set.seed(765)
update_bearing_param(const, path)
# [1] 2.0455226 0.7477887 2.6614361
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.