modifinder.Spectrum.normalize_peaks

Spectrum.normalize_peaks(change_self=True)[source]

l2 Normalize the intensity of the Spectrum object.

Parameters:

change_self (bool, default is True) – If True, the intensity of the Spectrum object will be normalized in place. If False, a new Spectrum object with the normalized intensity will be returned.

Returns:

  • None – If change_self is True, the intensity of the Spectrum object will be normalized in place.

  • Spectrum – A new Spectrum object with the normalized intensity.