Skip to contents

Calculate a logistic ogive (selectivity or maturity curve).

Usage

logistic_ogive(x, x50, x95)

Arguments

x

a numeric vector of length bin midpoints (mm).

x50

the size at 50% of the maximum value (mm).

x95

the difference between x95 and x50, where x95 is the size at 95% of maximum (mm).

Value

a numeric vector of ogive values between 0 and 1.

Examples

logistic_ogive(x = seq(31, 91, 2), x50 = 50, x95 = 10)
#>  [1] 0.003704727 0.006656080 0.011930458 0.021294735 0.037728427 0.065989313
#>  [7] 0.112934854 0.186605497 0.292487846 0.426916277 0.573083723 0.707512154
#> [13] 0.813394503 0.887065146 0.934010687 0.962271573 0.978705265 0.988069542
#> [19] 0.993343920 0.996295273 0.997940688 0.998856148 0.999364903 0.999647457
#> [25] 0.999804328 0.999891403 0.999939732 0.999966554 0.999981439 0.999989700
#> [31] 0.999994284