This allows to have certain methods encapsulated within the base section, while also being available to be used as a standalone function. For example, having a static method find_peaks in SpectralAnalysis class can be used to automate the process of peak finding by using it in the normalize method. In addition, one can also use the method independently by calling nomad_analysis.SpectralAnalysis.find_peaks
This allows to have certain methods encapsulated within the base section, while also being available to be used as a standalone function. For example, having a static method
find_peaks
inSpectralAnalysis
class can be used to automate the process of peak finding by using it in the normalize method. In addition, one can also use the method independently by callingnomad_analysis.SpectralAnalysis.find_peaks