I am able to generate random samples of normal distribution in numpy like this.
>>> mu, sigma = 0, 0.1 # mean and standard deviation
>>> s = np.random.normal(mu, sigma, 1000)
But they are in random order, obviously. How can I generate numbers in order, that is, values should rise and fall like in a normal distribution.
In other words, I want to create a curve (gaussian) with mu and sigma and n
number of points which I can input.
How to do this?
See Question&Answers more detail:os