Uses Gauss-Legendre quadrature to approximate the integral of a function on the domain [0, 1].
More...
|
| template<typename Func > |
| double | evaluate (Func const &func, double a=0.0, double b=1.0) |
| |
| template<typename Func > |
| double | evaluate_iteratively (Func const &func, double a=0.0, double b=1.0, size_t numGaussPoints=0, size_t incrementQuadraturePoints=1, double tol=1e-14) |
| |
| template<typename Func > |
| double | evaluate_logsumexp (Func const &logfunc, SingleFunction weightFunction, double a=0.0, double b=1.0) |
| |
| template<typename Func > |
| double | evaluate_logsumexp_iteratively (Func const &logfunc, SingleFunction weightFunction, double a=0.0, double b=1.0, size_t numGaussPoints=0, size_t incrementQuadraturePoints=1, double tol=1e-14) |
| |
| template<typename Func > |
| double | evaluate_sumexp (Func const &logfunc, SingleFunction weightFunction, double a=0.0, double b=1.0) |
| |
| template<typename Func > |
| double | evaluate_sumexp_iteratively (Func const &logfunc, SingleFunction weightFunction, double a=0.0, double b=1.0, size_t numGaussPoints=0, size_t incrementQuadraturePoints=1, double tol=1e-14) |
| |
| | GaussLegendreQuadrature (size_t numPoints=0) |
| | Constructor. More...
|
| |
| void | initialize (size_t numPoints) |
| |
Uses Gauss-Legendre quadrature to approximate the integral of a function on the domain [0, 1].