/questions/27735832/faster-way-of-using-interp1d-in-2d-array
Please help me there if you have time.
Simen
On Fri, Jan 2, 2015 at 9:29 PM, Jaime Fernández del Río <
jaime.f...@gmail.com> wrote:
> On Fri, Jan 2, 2015 at 3:06 AM, Simen Langseth
> wrote:
>
>> import numpy as np
import numpy as np
from scipy import signal
y = np.array([[2, 1, 2, 3, 2, 0, 1, 0],
[2, 1, 2, 3, 2, 0, 1, 0]])
maximas = signal.argrelmax(y, axis=1)
print maximas
(array([0, 0, 1, 1], dtype=int64), array([3, 6, 3, 6], dtype=int64))
I want to extract only the first maxima of both