Description Usage Arguments Value See Also Examples
draw_random_path_section
returns details on a randomly selected section of path to update.
1 | draw_random_path_section(section_length_limits, obs_index)
|
section_length_limits |
Vector of length two, lower and upper length limits for the section to choose. |
obs_index |
Vector of length number of observations, giving the index on the refined path where observation times coincide. |
List with components:
start
Numeric, the index of the start of chosen section.
end
Numeric, the index of the end of chosen section.
contained_obs_index
Vector (length variable) of index which are also observations (within the section).
contained_obs
Vector (length variable) of observation indexs included in the section.
Other Choose path: set_current_values
,
set_fixed_values
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | limits <- c(3, 10)
obs_index <- c(0,5,10,18,24,28,40,45,51,56,70)
set.seed(1234)
draw_random_path_section(limits, obs_index)
# $start
# [1] 10
#
# $end
# [1] 15
#
# $contained_obs_index
# numeric(0)
#
# $contained_obs
# integer(0)
set.seed(7654)
draw_random_path_section(limits, obs_index)
# $start
# [1] 46
#
# $end
# [1] 54
#
# $contained_obs_index
# [1] 51
#
# $contained_obs
# [1] 9
limits <- c(8, 15)
set.seed(678)
draw_random_path_section(limits, obs_index)
# $start
# [1] 14
#
# $end
# [1] 27
#
# $contained_obs_index
# [1] 18 24
#
# $contained_obs
# [1] 4 5
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.