Xmipp
v3.23.11-Nereus
|
Classes | |
class | doubleFunction |
class | Trapeze |
class | Romberg |
Functions | |
double | integrateNewtonCotes (double(*f)(double), double a, double b, int N) |
This code performs numeric integrations as described in the Numerical Recipes Book, in particular it implements the "trapezoidal" (Trapeze) and the Romberg integration. Both are designed for smoothly variant functions.
This module can also perform multidimensional integration.
double integrateNewtonCotes | ( | double(*)(double) | f, |
double | a, | ||
double | b, | ||
int | N | ||
) |
Integrate a function using Newton-Cotes formula
Estimate the integral of a function between a and b using N points.
Definition at line 32 of file integration.cpp.