title: How to change numpy.array sample rate?
body: <p>Say, I've got a signal which is one dimensional numpy array lasting for one second with sample rate equal to 16 kHz. How can I resample this array for instance to 1024 Hz without loosing information about "peaks" present in this signal as shown below? I add only that intervals between "peaks" are not less, than 40 ms.</p>
  
  <p>UPDATE</p>
  
  <p>I've found an interesting approach based on <code>scipy.signal.resample</code> function, but the problem with this function is that it return absolute value for each <code>y</code> value of the given vector.</p>
  
  <p><img src="https://i.stack.imgur.com/w6BBO.png" alt="enter image description here"></p>