#include <NumericalIntegration.h>
|
double | a0 |
|
double | b0 |
|
unsigned int | i |
|
double | result |
|
unsigned int | samples_ |
|
std::vector< double > | w |
|
std::vector< double > | x |
|
Definition at line 42 of file NumericalIntegration.h.
◆ GaussLegendreIntegrator() [1/2]
funct::GaussLegendreIntegrator::GaussLegendreIntegrator |
( |
| ) |
|
|
inline |
◆ GaussLegendreIntegrator() [2/2]
funct::GaussLegendreIntegrator::GaussLegendreIntegrator |
( |
unsigned int |
samples, |
|
|
double |
epsilon |
|
) |
| |
Definition at line 5 of file NumericalIntegration.cc.
10 <<
"gauss_legendre_integral: numerical precision must be positive\n";
14 const unsigned int m = (
samples + 1) / 2;
18 for (
unsigned int i = 0;
i <
m; ++
i) {
27 p1 = ((2.0 *
j + 1.0) *
z *
p2 -
j *
p3) / (
j + 1.0);
35 w[
i] = 2.0 / ((1.0 - zSqr) *
pp *
pp);
References edm::errors::Configuration, funct::cos(), geometryDiff::epsilon, Exception, i, dqmiolumiharvest::j, funct::m, p1, p2, p3, createTree::pp, EgammaValidation_cff::samples, w, and x.
◆ operator()()
template<typename F >
double funct::GaussLegendreIntegrator::operator() |
( |
const F & |
f, |
|
|
double |
min, |
|
|
double |
max |
|
) |
| const |
|
inline |
◆ a0
double funct::GaussLegendreIntegrator::a0 |
|
mutableprivate |
◆ b0
double funct::GaussLegendreIntegrator::b0 |
|
mutableprivate |
unsigned int funct::GaussLegendreIntegrator::i |
|
mutableprivate |
◆ result
double funct::GaussLegendreIntegrator::result |
|
mutableprivate |
◆ samples_
unsigned int funct::GaussLegendreIntegrator::samples_ |
|
private |
std::vector<double> funct::GaussLegendreIntegrator::w |
|
private |
std::vector<double> funct::GaussLegendreIntegrator::x |
|
private |