Data Analysis, Chemometrics, Spectroscopy, Raman Spectroscopy, Cosmic Rays.
Let’s calculate the z-scores for the points in our spectrum: def z_score(intensity): mean_int = np.mean(intensity) std_int = np.std(intensity) z_scores = (intensity — mean_int) / std_int return z_scores intensity_z_score = np.array(z_score(intensity)) plt.plot(wavelength, intensity_z_score)