I'm looking for a particular curve algorithm that is similar to to a bell curve/distribution, but instead of approaching zero at its ends, it stops at its length/limit. You specify the length of the curve of the curve and its maximum peak, and the plot will approach its peak at the midpoint of length(the middle) and then it curves downward to its end. As a math noob, I may not be making any sense. Here's an image of the curve I'm looking for:


The curve which you are looking for is a parabola. When I plugged in the equation $$f(x) = -(x-3.9)^{2} + 4$$ I got this figure, which some what resembles what you are looking for.