PreviousIndexLast

[help-gsl] Re: Integrating over a grid (2008-08-28)

From: Daniel Farrell <boyfarrell@.........>
Subject: Re: Integrating over a grid
Date: Thu, 28 Aug 2008 08:14:32 +0100
To: Nicolette Caister <caistern@..........>
Cc: help-gsl@gnu.org

Hi,

A am assuming 'grid' means 2D data set i.e. f(x,y) = z. Are you integrating data or a function? If it's data then I would suggest you create a two dimensional trapezium rule function. If it's an equation this would work too, however, you could also use GSL monte-carlo integration functions. These functions also work for higher dimensions.

Cheers,

Dan

On 26 Aug 2008, at 13:31, Nicolette Caister wrote:

Hi

I'm not sure if this is the right place for this question. Is there anyway I can use the GSL to integrate over a grid? The only option I can find is the "gsl_spline_eval_integ()" function. However, this actually makes an interpolating object and then integrates. Are there any others?

Thanks!

Kind Regards

Nicolette Caister
PhD student
School of Statistics and Actuarial Science
UKZN
South Africa
Please find our Email Disclaimer here: http://www.ukzn.ac.za/disclaimer/


_______________________________________________
Help-gsl mailing list
Help-gsl@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gsl