testYaps | R Documentation |
Run testYaps()
to check that the core functions of YAPS is working correctly.
Output should be a random simulated (black) and estimated (red) track.
testYaps(
silent = TRUE,
pingType = "sbi",
est_ss = TRUE,
opt_fun = "nlminb",
opt_controls = list(),
return_yaps = FALSE,
tmb_smartsearch = TRUE
)
silent |
Logical whether to print output to the console |
pingType |
Type of transmitter to simulate - either stable burst interval ('sbi'), random burst interval ('rbi') or random burst interval but where the random sequence is known a priori |
est_ss |
Logical whether to test using ss_data_what = 'est' (est_ss = TRUE) or ss_data_what = 'data' (est_ss = FALSE) |
opt_fun |
Which optimization function to use. Default is |
opt_controls |
List of controls passed to optimization function. For instances, tolerances such as |
return_yaps |
Logical whether to return the fitted yaps model. Default=FALSE. |
tmb_smartsearch |
Logical whether to use the TMB smartsearch in the inner optimizer (see |
If return_yaps == TRUE
, the fitted yaps
object. See ?runYaps
for further info.
#' # To test basic functionality of yaps using simulated data
testYaps()
# # # Three pingTypes are availabe:
# # # fixed burst interval (testYaps(pingType='sbi')),
# # # random burst interval with UNKNOWN burst interval sequence('testYaps(pingType='rbi')),
# # # random burst interval with KNOWN burst interval sequence (testYaps(pingType='pbi'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.