I'm looking for a specific function $f(x)$ with the following properties:
- Continuous (no piecewise functions) and smoothly decreasing.
- $f(x)>0$ for $0\leq x < c$
- $f(0)=1$
- $f(c)=0$
where $c$ is an arbitrary constant.
I've looked into decreasing exponentials [$a*exp(-b*x)$] and inverted square roots [$1/sqrt(a+b*x)$] but I haven't been able to pin down a combination of these that respects the above conditions.
A linear function like $1-x/c$ won't do it since it doesn't decrease smoothly (not sure if there's a more correct term for this) which is why I've been trying with exponents and square roots.
Here's what I mean by decreases smoothly graphically, where the functions tends to stabilize around $0$ for $x>c$:

Any ideas or pointers will be appreciated.