Fails to detect peaks at index 0

Issue #24 closed
Former user created an issue

Peaks at index 0 are not found

eg

y = np.ones(10) y[0]=3 y[4]=2

peakutils.indexes(y) array([4], dtype=int64)

Comments (2)

  1. Lucas Hermann Negri repo owner

    There are no peaks at the first or last positions, by definition (as the values outside the array are inexistent / undefined).

  2. Log in to comment