A knife-edge selectivity function where weights greater or equal to
knife_edge_size are fully selected and no fish smaller than this size
are selected.
Details
You would not usually call this function directly. Instead, set the sel_func
column in gear_params() to "knife_edge" and provide knife_edge_size as
an additional column. setFishing() will then call this function
automatically when calculating the selectivity array.
See also
gear_params() for setting the knife_edge_size parameter.
Other selectivity functions:
double_sigmoid_length(),
sigmoid_length(),
sigmoid_weight()
Examples
knife_edge(w = c(1, 10, 100, 1000), knife_edge_size = 100)
#> [1] 0 0 1 1
