¡@

Home 

python Programming Glossary: index_of_peak

These spectrum bands used to be judged by eye, how to do it programmatically?

http://stackoverflow.com/questions/10764569/these-spectrum-bands-used-to-be-judged-by-eye-how-to-do-it-programmatically

Find which of these peaks is closest to our starting point index_of_peak maxes np.argmin np.abs maxes start_index print Peak centre at.. np.abs maxes start_index print Peak centre at .3f ts index_of_peak # Quick plot showing the results blue line is data green dot.. b' plt.plot ts start_index xs start_index 'og' plt.plot ts index_of_peak xs index_of_peak 'or' plt.show This method will only work if..