1d Gauss Patterson nested quadrature rule More...
#include <GaussPattersonQuadrature.h>
1d Gauss Patterson nested quadrature rule
Definition at line 14 of file GaussPattersonQuadrature.h.
Public Member Functions | |
GaussPattersonQuadrature () | |
virtual | ~GaussPattersonQuadrature ()=default |
virtual void | Compute (unsigned int index) override |
virtual unsigned int | Exactness (unsigned int quadOrder) const override |
Public Member Functions inherited from muq::Approximation::Quadrature | |
Quadrature (unsigned int dimIn) | |
virtual | ~Quadrature ()=default |
virtual void | Compute (Eigen::RowVectorXi const &orders) |
virtual unsigned int | Dim () const |
virtual Eigen::MatrixXd const & | Points () const |
virtual Eigen::VectorXd const & | Weights () const |
GaussPattersonQuadrature::GaussPattersonQuadrature | ( | ) |
Definition at line 5 of file GaussPattersonQuadrature.cpp.
|
virtualdefault |
|
overridevirtual |
Implements muq::Approximation::Quadrature.
Definition at line 33 of file GaussPattersonQuadrature.cpp.
References muq::Approximation::Quadrature::pts, and muq::Approximation::Quadrature::wts.
|
overridevirtual |
Returns the order of the polynomial that can be integrated exactly by this quadrature rule. An \(n\)-point Gauss quadrature rule integrates polynomials of order \(2n-1\) exactly. Thus, since \(n\)= quadOrder+1, for Gauss quadrature rules, this function will return 2*quadOrder+1.
In the multivariate tensor product rule, the maximum exactness across all dimensions is returned.
If not exactness information is known (or implemented) for a particular quadrature rule, an exception will be thrown.
Reimplemented from muq::Approximation::Quadrature.
Definition at line 10 of file GaussPattersonQuadrature.cpp.