.acs_pl | R Documentation |
.acs
that supports parallelisationThis function implements the acoustic-container (AC) and acoustic-container depth-contour (ACDC) algorithms. This is called via a front-end function (i.e. ac
or acdc
). It checks and processes inputs and implements the selected algorithm via calls to .acs
. Outputs are returned in a named list.
.acs_pl(
acoustics,
archival = NULL,
step = 120,
plot_ts = TRUE,
bathy,
detection_containers,
detection_kernels = NULL,
detection_kernels_overlap = NULL,
detection_time_window = 5,
mobility,
calc_depth_error = function(...) matrix(c(-2.5, 2.5), nrow = 2),
normalise = TRUE,
save_record_spatial = 1L,
write_record_spatial_for_pf = NULL,
verbose = TRUE,
con = "",
progress = 1L,
split = NULL,
cl = NULL,
varlist = NULL
)
acoustics |
A dataframe, or a list of dataframes, that contains passive acoustic telemetry detection time series (see |
archival |
For the ACDC algorithm, |
step |
A number that defines the time step length (s) between consecutive detections (see |
plot_ts |
A logical input that defines whether or not to plot movement time series (see |
bathy |
A |
detection_containers |
A list of detection containers (see |
detection_kernels |
A named list of detection probability kernels (see |
detection_kernels_overlap |
A named list of detection probability kernel overlaps, directly from |
detection_time_window |
A number that defines the detection time window (see |
mobility |
The mobility parameter (see |
calc_depth_error |
The depth error function (see |
normalise |
A logical input that defines whether or not to normalise maps (see |
save_record_spatial |
An integer of the spatial layers to save (see |
write_record_spatial_for_pf |
A named list used to write time step-specific maps to file (see |
verbose |
A logical variable that defines whether or not to print messages to the console or to file to relay function progress. If |
con |
If |
progress |
(optional) If the algorithm is implemented step-wise, |
split |
A character string that defines the (approximate) time unit used to split acoustic time series into chunks (e.g., |
cl , varlist |
(optional) Parallelisation options. |
The function returns an acdc_archive-class
object. If a connection to write files has also been specified, an overall log (acdc_log.txt) as well as chunk-specific logs from calls to .acs
, if applicable, are written to file.
Edward Lavender
The front-end functions ac
and acdc
call this function, which in turn calls .acs
. acs_setup_containers
defines the detection containers required by this function. acs_setup_mobility
is used to examine the assumption of the constant ‘mobility’ parameter. acs_setup_detection_kernels
produces detection probability kernels for incorporation into the function. For calls via ac
and acdc
, acdc_simplify
simplifies the outputs and acdc_plot_trace
, acdc_plot_record
and acdc_animate_record
visualise the results.
# For examples, see ?ac and ?acdc which call this function directly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.