title: Integration (math) in C++
body: <p>I'm looking for a library to find the integral of a given set of random data (rather than a function) in C++  (or C, but preferably C++).  There is <a href="https://stackoverflow.com/questions/1564543/c-math-library-with-integration">another question asking about integration in C</a> but the answers discuss more how to integrate a function (I think...).  I understand that this can be done simply by calculating the area under the line segment between each pair of points from start to finish, but I'd rather not reinvent the wheel if this has already been done.  I apologize in advance if this is a duplicate; I searched pretty extensively to no avail.  My math isn't as strong as I'd like it so it's entirely possible I'm using the wrong terminology.</p>
  
  <p>Thanks in advance for any help!</p>
  
  <p>Chris</p>
  
  <p><strong>Edit:</strong> In case anybody is interested, I feel like an idiot.  Even adding in a bunch of OO abstraction to make my other code easier to use, that was maybe 30 lines of code. This is what 3 years away from any sort of math will do to you...thanks for all of the help!</p>