I'm running after a particular function $f_\sigma : [−1,+1] \rightarrow [-1,+1]$ that could take three different forms depending on the value of its parameter $\sigma$. Could anyone help me finding/building it?
Let the critical values be $-\infty \leqslant \sigma_a < \sigma_b < \sigma_c \leqslant +\infty$, and the following specifications be respected. I need:
$\forall \sigma \in \bar{\mathbb{R}}:$
- $f_\sigma(-1) = -1$
- $f_\sigma(0) = 0\ \mbox{or indefinite}$
- $f_\sigma(+1) = +1$
- $f_\sigma \nearrow \mbox{(weakly)}$
- $f_\sigma \in \mathcal{C}^1\ \mbox{except eventually in 0}$
$\forall x \in [-1,+1]:$
- $\lim_{\sigma\rightarrow \sigma_a}\ f_\sigma(x) = f_a(x) = x$
- $\lim_{\sigma\rightarrow \sigma_b}\ f_\sigma(x) = f_b(x) =$ ... I don't know, something "smooth and nice" (see below)
- $\lim_{\sigma\rightarrow \sigma_c}\ f_\sigma(x) = f_c(x) = \left\{\begin{array}{rrr} +1 & \mbox{if} & x > 0\\ -1 & \mbox{if} & x < 0 \end{array}\right.$
- $\sigma_a < \sigma < \sigma_c \Rightarrow \left\{\begin{array}{rrr} f_a < f_\sigma < f_c & \mbox{where} & x > 0\\ f_c < f_\sigma < f_a & \mbox{where} & x < 0 \end{array}\right.$
That is: interpolating between the identity and the sign function.
I have several "smooth and nice" candidates for $f_b(x)$ such as $\sin(\frac{\pi}{2}x)$ or $\frac{1}{2} \left(3 x-x^3\right)$, but maybe none of these will provide an actual answer..
Any idea?
[EDIT]: `Got one: $f_\sigma(x) = f_c(x) |x|^{\frac{1}{\sigma}}$ does fulfill the above requirements.. But I'm still not pleased with it: I think that my "smooth and nice" criteria may be given as :
$f_\sigma'(-1) = f_\sigma'(+1) = 0\quad \forall \sigma > \sigma_b$ at least
$f_\sigma'(0)\ finite\quad \forall \sigma < \sigma_c$
.. but this is still work in progress..
[EDIT:] Okay, I just can't believe how close we are now.. without being actually there! Somegeekfriendofyours's function f, amazingly defined as :
$f_\alpha(x)=\frac{\left|\frac{1-\frac{2}{\pi}\arccos\left(\alpha\sin\left(\frac{\pi}{2}x\right)\right)}{1-\frac{2}{\pi}\arccos\left(\alpha\right)} \right|^{1+\alpha}}{\frac{1-\frac{2}{\pi}\arccos\left(\alpha\sin\left(\frac{\pi}{2}x\right)\right)}{1-\frac{2}{\pi}\arccos\left(\alpha\right)}}$
with $\alpha \in [0,1]$ does fulfill every single requirement of those listed above.. but it still does it in a rather.. lazy way. Let me explain myself further :
- $f'_\alpha(0)$ is finite, but still it is.. pretty high.
- $f'_\alpha(1)$ is null, but still it looks.. pretty hard to get there.
What I mean is : this $f$ here approaches the sign function by its vertical trait, where I would rather like it to do so by sticking to the horizontal ones. That was the very spirit of the last two requirements. I have no idea how the hell I would formalize this, so lets make it clear with a graph :

And, for I am aware all this stuff may sound a bit pointless, let's take a peep at one application of this function I am looking for. I wish to shade colors into one another, using this function to interpolate'em. If I could find what I am looking for, I could make nice blendings and tweak how spread the original colors would be within them.
Here is an example showing the reason why this "wrong-side-sticking" problem is.. a problem :P

Any idea?
[EDIT:]
Rahul got it in the comments! I don't have the privilege to post it as wiki yet, anyone is then welcome to do so, so the question will be moved off the stack. Thank you so much! ^ ^

Here are several equivalent definitions: $$\begin{align} f_a(x) &= \tanh(a\tanh^{-1}x) \\ &= \frac{(1+x)^a-(1-x)^a}{(1+x)^a+(1-x)^a} \\ &= \frac{\binom a1x+\binom a3x^3+\binom a5x^5+\cdots}{\binom a0+\binom a2x^2+\binom a4x^4+\cdots}. \end{align}$$
Near $\pm1$, $f$ behaves like a shifted, scaled copy of $x^a$. Also, $f'(0)=a$.