Transforms the data with a logistic function.
Arguments
- x
Values to transform (a vector, a SpatRaster, or other data types where mathematical functions can be applied)
- x0
value of x that indicates the point of inflexion.
- L
value that indicates the highest value for trasnformed data.
- k
value that indicates the softness of the curve.
Value
Returns a transformed object of same data type as x.
References
Author
Note
Examples
# random values
val <- runif(1000, 0, 10)
# apply a logitic transformation to values
lval <- logistic(val, 5, 1, 1)
plot(val, lval, cex=0.2)