Simple function that returns a Gaussian curve?

18 Views Asked by At

I need a simple function that it's output is a Gaussian for $\mathbb{R} \to [0,1]$.

Any tips? Thanks.

1

There are 1 best solutions below

0
On BEST ANSWER

$$f_\sigma(x)=e^{-\frac{x^2}{2\sigma^2}}$$ Here $\sigma$ is controlling the width of the Gaussian