Это мой пример данных. px = [6.71930167e-04 7.14113246e-04 7.58495640e-04 8.05162952e-04 8.54202162e-04 9.05701527e-04 9.59750488e-04 1.01643956e-03 1.07586026e-03 1.13810500e-03 1.2032670027-03 1.27 03 1.34271949e-03 1.41720001e-03 1.49497786e-03 1.57614966e-03 1.66081277e-03 1.74906525e-03 1.84100596e-03 1.93673474e-03 2.03635246e-03 2.13996125e-03 2.24766473e-03 2.35956823e-03 2.35956823e-03 ...] это продолжается 50000 очков.
[Using these data I have generated a gaussian like curve,][1]
Unfortunately the output I get is :
Пики: [4 3274 21327 37758] 1.8815401030341283 5.9991507534775215 2.6829195717498546
The code I have used to generate these data is,
Import numpy as np
import scipy.signal
vector = np.array(px)
indexes, _ = scipy.signal.find_peaks(vector,distance = 1)
print('Peaks are: %s' % (indexes))
for i in range(3):
x = indexes[i]
y = r_store[x]
print(y)
plt.show()'
[1]: https://i.stack.imgur.com/TBNfU.png