Function
NumCosmoMathintegrate_2dim_vegas
Declaration [src]
gboolean
ncm_integrate_2dim_vegas (
NcmIntegrand2dim* integ,
gdouble xi,
gdouble yi,
gdouble xf,
gdouble yf,
gdouble epsrel,
gdouble epsabs,
const gint nstart,
gdouble* result,
gdouble* error
)
Description [src]
This function computes the integral of the function integ->f over the
interval [xi, xf] and [yi, yf] using the Vegas algorithm from the Cuba library.
Parameters
integ-
Type:
NcmIntegrand2dimA pointer to
NcmIntegrand2dim.The data is owned by the caller of the function. xi-
Type:
gdoubleGbouble which is the lower integration limit of variable x.
yi-
Type:
gdoubleGbouble which is the lower integration limit of variable y.
xf-
Type:
gdoubleGbouble which is the upper integration limit of variable x.
yf-
Type:
gdoubleGbouble which is the upper integration limit of variable y.
epsrel-
Type:
gdoubleRelative error.
epsabs-
Type:
gdoubleAbsolute error.
nstart-
Type:
const gintNumber of samples to start the first round of integration with.
result-
Type:
gdouble*A pointer to a gdouble in which the function stores the result.
The data is owned by the caller of the function. error-
Type:
gdouble*A pointer to a gdouble in which the function stores the estimated error.
The data is owned by the caller of the function.