Peak pick a spectrum using a threshhold-minimum distance algorithm.
Find peaks (local maxima) in a arbitrary dimensional NMR spectra above a set threshold with a minimal distance between peaks. When the spectrum is small and multiple copies can fit into RAM use the _fast version of this function. Segments are found by finding the first point in each direction along each dimension which is below the threshold.
Parameters : | data : ndarray
thres : float
msep : tuple
find_segs : bool, optional
|
---|---|
Returns : | locations : list
seg_slices : list, optional
|