Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Question Protected by Sheldore
edit after sven's comments
Source Link
Navi
  • 8.8k
  • 4
  • 36
  • 32

Finding local maxima/minima with Numpy in a 1D numpy array

Can you suggest a module function from numpy/scipy that can find local maxima/minima in a 1D numpy array? Obviously the simplest approach ever is to have a look at the nearest neighbours, but I would like to have an accepted solution that is part of the numpy distro.

Finding local maxima/minima with Numpy

Can you suggest a module function from numpy/scipy that can find local maxima/minima in a numpy array?

Finding local maxima/minima with Numpy in a 1D numpy array

Can you suggest a module function from numpy/scipy that can find local maxima/minima in a 1D numpy array? Obviously the simplest approach ever is to have a look at the nearest neighbours, but I would like to have an accepted solution that is part of the numpy distro.

Source Link
Navi
  • 8.8k
  • 4
  • 36
  • 32

Finding local maxima/minima with Numpy

Can you suggest a module function from numpy/scipy that can find local maxima/minima in a numpy array?