Step function approximation with explicit and symmetric limits?

386 Views Asked by At

I can approximate step function with

enter image description here

This will describe a function, stepping from $y_{\min}=0$ to $y_{\max}=1$ at $x=0$.

I can rescale this function to any y-range, but failed to reach a form, where $y_{\min}$ and $y_{\max}$ stands symmetrically.

I got, for example

$\frac{y_{\max}+y_{\min} e^{-2kx}}{1+e^{-2kx}}$

which is not symmetric.

How to express symmetrically?

1

There are 1 best solutions below

0
On BEST ANSWER

How about $$ \frac{y_{\max}}{1+e^{-2kx}}+\frac{y_\min}{1+e^{2kx}}?$$ Or simply $$ \frac{y_\max+y_\min}{2}+\frac{y_\max-y_\min}{2}\tanh(kx).$$