Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica: NIntegrate data points

  1. May 13, 2012 #1

    I have a set of data points in units of (time, voltage), and they have the form of a Gaussian when I plot it. I would like to normalize my data set, i.e. find a factor C that I multiply on to the voltage-data such that the area is 1.

    However, is there a way to numerically integrate data points in Mathematica?

  2. jcsd
  3. May 13, 2012 #2


    Staff: Mentor

    Integration is probably overkill. I would just use:


    or equivalently:


    If you really want to integrate it then you need to construct an interpolating function object, specify the order of the interpolation and then integrate that. Alternatively, you could fit the data to a Gaussian and then use the integral of the fitted Gaussian.
    Last edited: May 13, 2012
  4. May 15, 2012 #3
    Thanks. Yeah, I think integrating it is overkill. Your first suggestion works!

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook