Not only the doc is not clear which paramerers it describes, but the function itself is unusual.
The first thing to see is that the first argument s is expected to be between 0 and 1, and the output will also be between 0 and 1, which is pretty standard for easing functions. Then you can scale or lerp after that if you want a different output range. The curve parameter however isn’t obvious.