Implementation of the logistic function

logistic(x, x0, k)

Arguments

x

value to apply the function to.

x0

midpoint parameter. Gives the centre of the function.

k

shape parameter. Gives the slope of the function.

Value

Value of logistic function with given parameters