jupyter_analysis_tools.distrib.findLocalMinima

jupyter_analysis_tools.distrib.findLocalMinima(peakRanges, xarr, yarr, doPlot=False, verbose=False)[source]

Identify local (non-zero) minima within given peak ranges and separate those bimodal ranges into monomodal ranges, thus splitting up the peak range if it contains maxima connected by non-zero minima. Returns a list of index tuples indicating the start and end of each peak. Uses 4th order spline fitting and its derivative for finding positions of local minima.