I know that a simple linear function can map $[a,b]$ to $[A,B]$ by $f(x) = \frac{x-a}{b-a}(B-A) + A$ but what if I want to map $[a,b]$ to $[A,B]$ while ensuring that $f(c) = C$ for $a < c < b$ and $A < C < B$? I assume I will need a quadratic function for this.
Can this be generalized to allow for $n$ interior points to be mapped such that $f(c_i) = C_i$ for $a < c_i < b$ and $A < C_i < B$ where $c_i < c_{i+1}$ and $C_i < C_{i+1}$?
As a more concrete example, I have some data for which I have calculated the min, max, avg, and std, so that I have $\{Xmin, Xavg - Xstd, Xavg, Xavg + Xstd, Xmax\}$ and I want to find a polynomial function which maps these values to $\{0, 0.25, 0.5, 0.75, 1\}$. How should I construct such a function?