View source: R/lethality_curve.R
lethality_curve | R Documentation |
This function returns the Probability of Lethality for a range of speeds based on
a logistic function of form: P(Lethality) = asymptote/ (1 + exp(-1*(c1 + (c2*speeds))))
.
The defaults are the values used in Keen et al. (2023) for large ships > 180m.
lethality_curve(
speeds = seq(0, 30, length = 1000),
c1 = -1.241241,
c2 = 0.2712432,
asymptote = 1
)
speeds |
A vector of speeds at which to predict P(Lethality). |
c1 |
First parameter |
c2 |
Second parameter |
asymptote |
Upper asymptote of the function. |
A data.frame
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.