npstat::GaussLegendreQuadratureQ Class Reference
Detailed DescriptionGauss-Legendre quadrature. Internally, operations are performed in lapack_double precision. Constructor & Destructor Documentation◆ GaussLegendreQuadratureQ()
At the moment, the following numbers of points are supported: 2, 4, 6, 8, 10, 12, 16, 32, 64, 100, 128, 256, 512, 1024. If an unsupported number of points is given in the constructor, std::invalid_argument exception will be thrown. Member Function Documentation◆ allowedNPonts()
The complete set of allowed rules, in the increasing order ◆ getAbscissae()
The abscissae are returned for positive points only, so the buffer length should be at least npoints/2. ◆ getAllAbscissae()
Return abscissae for all points ◆ getAllWeights()
Return weights for all points ◆ getWeights()
The weights are returned for positive points only, so the buffer length should be at least npoints/2. ◆ integrate() [1/2]
template<typename FcnResult , typename FcnArg >
Perform the quadrature on [a, b] interval ◆ integrate() [2/2]
template<typename FcnResult , typename FcnArg >
This method splits the interval [a, b] into "nsplit" subintervals of equal length, applies Gauss-Legendre quadrature to each subinterval, and sums the results. ◆ isAllowed()
Check if the rule with the given number of points is supported ◆ minimalExactRule()
Minimum number of points, among the supported rules, which integrates a polynomial with the given degree exactly. Returns 0 if the degree is out of range. ◆ npoints()
Return the number of quadrature points ◆ weightedIntegrationPoints()
template<class Functor >
Weighted integration points on the given interval, suitable for constructing orthogonal polynomials w.r.t. the given weight function (in particular, by ContOrthoPoly1D class). Naturally, rule with "npoints" points must be able to calculate polynomial normalization integrals exactly. The documentation for this class was generated from the following file: Generated by 1.9.1 |