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
    Hi

    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?

    Best,
    Niles.
     
  2. jcsd
  3. May 13, 2012 #2

    Dale

    Staff: Mentor

    Integration is probably overkill. I would just use:

    Apply[Plus,data]

    or equivalently:

    Plus@@data

    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!

    Best,
    Niles.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Mathematica: NIntegrate data points
Loading...