a monotonic saturation function with monotonic first deriviate used in recipes for preprocssing MMM data

get_train_saturation(x, asymptote, saturation_speed)

Arguments

x

vector of numeric value to saturate

asymptote

the asymptote of the transformed values; should probably exceed the max value in the modeled data

saturation_speed

higher values approach the asymptote faster

Value

a numeric vector of transformed values