title: How to integrate a signal in Python
body: <p>I have to integrate a signal in a range that I decide.</p>
  
  <p>I have used this method:</p>
  
  <pre><code>def integrand(x,y):
      return y[x]
  
  result=scipy.integrate.quad(integrand,t0,t1,args=(y))*0.2E-6
  </code></pre>
  
  <p>y is an array of 2500 points in 500microsec. For example t0 is 700 and t1 is 1500.
  0.2E-6 is the step between two value of the signal.</p>
  
  <p>Is it correct?</p>