[R] integration of a discrete function

Giuseppe Pagnoni gpagnon at emory.edu
Sat Apr 20 16:52:53 CEST 2002

Dear R list

I am looking for a function in R that computes the integration of a
discrete curve, such as a power spectrum, in a specified interval (in my
case, that would be 'power in a certain frequency band').  I found only
functions, such as 'integrate', that perform adaptive quadrature on
analytic functions, and not on a curve specified as a set of (x,y) pairs.
I have the impression that I am not looking in the right place....  or I
should code the algorithm myself?

thanks for any suggestion


Giuseppe Pagnoni
Emory University
Dept.of Psychiatry and Behavioral Sciences
1639 Pierce Dr.
Suite 4000, WMB Bldg.
Atlanta, GA, 30322
phone: 404-7128431
fax: 404-7273233

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list