...
 
Commits (2)
......@@ -3,7 +3,7 @@ Type: Package
Title: A package for the Great Lakes Acoustic Telemetry Observation System
Description: Functions useful to members of the Great Lakes Acoustic Telemetry Observation System www.glatos.glos.us; many more broadly relevant to simulating, processing, analysing, and visualizing acoustic telemetry data.
Version: 0.4.0
Date: 2019-11-06
Date: 2019-11-07
Depends: R (>= 3.2.0)
Imports:
cellranger,
......
......@@ -16,7 +16,9 @@
### Minor changes
- change1
- calc_collision_probs
- in help examples, make separate plots for detection and collision probs
- issue #77
----
# glatos 0.3.2
......
......@@ -53,8 +53,13 @@
#' #parameters analagous to Vemco tag, global coding, 45 s nominal delay
#' foo <- calc_collision_prob(delayRng = c(45, 90), burstDur = 5.12, maxTags = 50,
#' nTrans = 10000)
#' # plot probability of collision by subtracting detection probability from 1
#'
#' #plot probabilities of detection
#' plot(med~nTags, data=foo, type='p', pch=20, ylim=c(0,1),
#' b
#'
#' #plot probability of collision by subtracting detection probability from 1
#' plot((1 - med)~nTags, data=foo, type='p', pch=20, ylim=c(0,1),
#' xlab="# of transmitters within range", ylab="Probability of collision")
#'
#' @export
......
......@@ -54,8 +54,13 @@ tags are co-located at a receiver for the duration of the simulation.
#parameters analagous to Vemco tag, global coding, 45 s nominal delay
foo <- calc_collision_prob(delayRng = c(45, 90), burstDur = 5.12, maxTags = 50,
nTrans = 10000)
# plot probability of collision by subtracting detection probability from 1
#plot probabilities of detection
plot(med~nTags, data=foo, type='p', pch=20, ylim=c(0,1),
b
#plot probability of collision by subtracting detection probability from 1
plot((1 - med)~nTags, data=foo, type='p', pch=20, ylim=c(0,1),
xlab="# of transmitters within range", ylab="Probability of collision")
}
......