Mathematica: NIntegrate data points

  • Mathematica
  • Thread starter Niles
  • Start date
  • #1
1,868
0

Main Question or Discussion Point

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.
 

Answers and Replies

  • #2
29,788
6,128
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:
  • #3
1,868
0
Thanks. Yeah, I think integrating it is overkill. Your first suggestion works!

Best,
Niles.
 

Related Threads on Mathematica: NIntegrate data points

Replies
2
Views
3K
Replies
13
Views
10K
Replies
1
Views
3K
Replies
1
Views
3K
Replies
5
Views
2K
Replies
0
Views
7K
Replies
1
Views
3K
Top