https://github.com/UoMResearchIT/programming_with_python/blob/19edfb758c78c9614ae7a2406dfa581a473f47ac/_episodes/03-numpy_essential.md?plain=1#L220
This might not be clear for people who have not done this sort of signal processing. We should explain what is the "signal" - the bump - and what is the "noise" - the data that is around zero but not exactly zero because of the random numbers.
I made this plot to try to visualise the filtering we are doing:
plt.plot(x, noisy)
plt.plot(x, [mean_noisy]*len(x), 'g-')
plt.plot(x, [mean_noisy+stddev_noisy]*len(x), 'r-')
plt.plot(x, [mean_noisy-stddev_noisy]*len(x), 'r-')
https://github.com/UoMResearchIT/programming_with_python/blob/19edfb758c78c9614ae7a2406dfa581a473f47ac/_episodes/03-numpy_essential.md?plain=1#L220
This might not be clear for people who have not done this sort of signal processing. We should explain what is the "signal" - the bump - and what is the "noise" - the data that is around zero but not exactly zero because of the random numbers.
I made this plot to try to visualise the filtering we are doing: