ToolPythonBeginner
numpy.mean
Python. Called in 5 tutorials; each line below leads to its place in the tutorial.
ToolPythonIntermediate
Filtering with scipy.signal: mains hum and noise out of an ECG
ToolPythonBeginner
Random numbers with numpy.random: ten thousand reproducible random walks
ConceptPythonBeginner
The Fourier transform: asking a signal how much of each frequency it contains
ToolPythonBeginner
scipy.stats from the ground up: is the difference between two samples real?
- return np.mean(x, axis=axis) - np.mean(y, axis=axis)
- above, below = np.mean(null >= diff), np.mean(null <= -diff)
- print(f"runs with p < 0.05: {100 * np.mean(rep.pvalue < 0.05):.1f} %")
- print(f"intervals containing 2.0 mg: {100 * np.mean(covers):.1f} %")
- print(f"26 batches per protocol: p < 0.05 in {100 * np.mean(rerun(26)[2].pvalue < 0.05):.1f} % of runs")
- f"{100 * np.mean(skew_ln > s_high):.0f} % above {s_high:.2f}")
and 1 more line in this tutorial