Produces an object suitable to pass as the ressupply to spec_rescomp().

ressupply_chemostat(dilution, concentration)

Arguments

dilution

A numeric vector or rescomp_coefs_vector, of length one.

concentration

A vector or rescomp_coefs_vector, with one number per resource. The concentration of each resource in the incoming medium.

Value

S3 object of class rescomp_ressupply.

Examples

ressupply <- ressupply_chemostat(dilution = 0.01, concentration = rescomp_coefs_lerp(c(0, 0, 0), c(2, 3, 4), "ressupply_scaling"))
get_ressupply(ressupply, c(2, 4, 10), list(ressupply_scaling = 0))
#> [1] -0.02 -0.04 -0.10
get_ressupply(ressupply, c(3, 3, 3), list(ressupply_scaling = 1))
#> [1] -0.01  0.00  0.01