![]() |
Orfeo Toolbox
3.16
|
Use the Gauss-Legendre formula to perform integration. More...
#include <itkFEMUtility.h>
Public Member Functions | |
| double | Integrate (double(*f)(double), double a, double b, int n=3) |
Static Public Attributes | |
| static const double | one = 1.0 |
| static const double | two = 2.0 |
| static const double | w [110] |
| static const double | z [110] |
| static const double | zero = 0.0 |
Use the Gauss-Legendre formula to perform integration.
Numerical integration (Gauss-Legendre formula). Integrates function f(x) from x=a to x=b in n points.
Definition at line 39 of file itkFEMUtility.h.
| double itk::fem::GaussIntegrate::Integrate | ( | double(*)(double) | f, |
| double | a, | ||
| double | b, | ||
| int | n = 3 |
||
| ) |
Numerical integration (Gauss-Legendre formula). Integrates function f(x) from x=a to x=b in n points.
This subprogram produces the gauss-legendre numerical integral for
b int f(x)*dx a
The number of nodes n must satisfy 2 <= n <= 20 The following data statements contain the gauss-legendre nodes for the interval [-1,1].
Definition at line 32 of file itkFEMUtility.cxx.
|
static |
Definition at line 42 of file itkFEMUtility.h.
Referenced by Integrate().
|
static |
Definition at line 43 of file itkFEMUtility.h.
Referenced by Integrate().
|
static |
Definition at line 45 of file itkFEMUtility.h.
Referenced by Integrate().
|
static |
Definition at line 44 of file itkFEMUtility.h.
Referenced by Integrate().
|
static |
Definition at line 41 of file itkFEMUtility.h.
Referenced by Integrate().