Library "FunctionPeakDetection"
Method used for peak detection, similar to MATLAB peakdet method
function(sample_x, sample_y, delta) Method for detecting peaks.
Parameters:
sample_x: float array, sample with indices.
sample_y: float array, sample with data.
delta: float, positive threshold value for detecting a peak.
Returns: tuple with found max/min peak indices.