[Math] SmoothStep: Looking for a continuous family of interpolation functions

functionsinterpolation

Background:

SmoothStep is a simple sigmoid-like function defined as S(x) = 3x^2 – 2x^3. It is monotonically increasing from (0, 0) to (1, 1), is rotationally symmetric over that interval, and has flat tangents at both endpoints. This function is useful for generating an interpolation parameter when you would like to ease in and out between an initial and final value.

S(S(x)) will yield a function that has a longer ease-in/ease-out with a sharper transition in the middle, and S(S(S(x))) makes the middle steeper still. The more times the function is nested, the more protracted the ease is and the steeper the tangent at the midpoint becomes.

Question:

I would like to be able to drive this curve from shallow to steep continuously using some kind of 'steepness' parameter, but repeated iteration only allows discrete curves to be evaluated. Additionally, the cost of evaluating the function grows with the number of nested iterations. Is there any similar function which could be tuned continuously in this manner?

Best Answer

This graph exposes two parameters which allow the curve to be tuned continuously: https://www.desmos.com/calculator/3zhzwbfrxd

Related Question