Peaks.RecognizerSpecific

Peaks.RecognizerSpecific#

Peaks.RecognizerSpecific.py

bridge_recognize_peaks(x, y, num_peaks=None, debug=False)#

Bridge function to recognize peaks in a curve using the legacy method. This function is a wrapper around the legacy peak recognition method when num_peaks is specified. :param x: The x-coordinates of the curve. :type x: array-like :param y: The y-coordinates of the curve. :type y: array-like :param num_peaks: The number of peaks to recognize. If None, the legacy method will not be used. :type num_peaks: int, optional :param debug: If True, additional debugging information will be printed and plotted. :type debug: bool, optional

Returns:

A list of indices where peaks are found in the curve.

Return type:

list