Module dlib.math.interpolation.smoothstep
Sigmoid-like functions for clamping and non-linear interpolation of values in [0, 1] range.
Functions
Name | Description |
---|---|
hermiteSmoothstep(x, e0, e1)
|
Hermite polynomial, analogous to GLSL smoothstep. e0 and e1 define lower and upper edges of Hermite function. |
rationalSmoothstep(x, k)
|
Rational sigmoid that becomes linear at k=0 and discrete at k=1. Allows varying between linear and nearest-neighbour interpolation. |