I need a function that has the shape shown below. I don't care what the function does for $x < 0$ or $x > 1$.
I've experimented with a lot of different functions, configured first and second derivatives, and came up with this little monster. But I suspect there's something simpler.
$$\frac{1 + \sin \left[\frac{\pi}{2}(544x + 81)^{1/4}\right]}{2}$$
The origin of this problem is that I'm trying to turn a difference metric between a pattern and a model into a sort of "probability" that the model and the pattern are a bad match. So it should be zero for the model that best matches the pattern, and low for very similar patterns, but rising quickly for patterns that are less similar.
But as I look at it, it reminds me of a gravity well.