Gives the positions and values of the local maxima of a list.
تختلف عن مرجع .wl: `FindPeaks` with a non-zero smoothing scale
FindPeaks[list]
FindPeaks[list, σ]
FindPeaks[list, σ, s]
FindPeaks[list, σ, s, t]
FindPeaks[list, σ, {s, σ s}, {t, σ t}]
FindPeaks[{1, 3, 5, 6, 6, 4, 3, 2, 4, 7, 3, 2, 4, 2, 2, 1}]
→ {{9/2, 6}, {10, 7}, {13, 4}}FindPeaks[{1, 3, 3, 1}]
→ {{5/2, 3}}FindPeaks[{3, 3, 1}]
→ {{1, 3}}FindPeaks[{3, 3, 3, 1}]
→ {}FindPeaks[{1, 3, 5, 6, 6, 4, 3, 2, 4, 7, 3, 2, 4, 2, 2, 1}, 0, 2]
→ {{10, 7}, {13, 4}}FindPeaks[{1, 3, 5, 6, 6, 4, 3, 2, 4, 7, 3, 2, 4, 2, 2, 1}, 0, 4.5]
→ {{10, 7}}FindPeaks[{1, 3, 5, 6, 6, 4, 3, 2, 4, 7, 3, 2, 4, 2, 2, 1}, 0, 0, 4.1]
→ {{9/2, 6}, {10, 7}}FindPeaks[{1, 2, 3, 2, 1}, -1]
→
FindPeaks::scale: The scale -1 at position 2 should be a non-negative real number.
FindPeaks[{1, 2, 3, 2, 1}, -1]- InterpolationOrder — default Automatic
- Padding — default "Reflected"